Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sergeyprokhoren
· 1y ago · 0 comments
Bad idea. In PostgreSQL 18 the optional parameter shift will shift the computed timestamp by the given interval
https://www.postgresql.org/docs/18/functions-uuid.html
Comments
[–]
michelpp
1y ago
That still exposes the timestamp, and the shift just drops precision, so I'm not sure what you're going for here.
[–]
sergeyprokhoren
OP
1y ago
If you shift the timestamp forward by 5 thousand years, it can hardly be called just a decrease in precision.