Databases
Databases
Postgres uuidv7 in PostgreSQL 18: Time-Ordered Primary Keys in Ten Minutes
PostgreSQL 18 ships a built-in uuidv7() function, so time-ordered UUID primary keys need no extension. A ten-minute lab: make a table, read the timestamp back out, backfill with a shift, and know when not to use them.
Ada Brackett5 min read