Hacker News new | ask | show | jobs
by sergeyprokhoren 265 days ago
Offsetting the timestamp is much better. Use the uuidv7(INTERVAL shift) function in PostgreSQL 18

https://www.postgresql.org/docs/18/functions-uuid.html

in Percona Server for MySQL: https://docs.percona.com/percona-server/8.4/uuid-versions.ht...