UUIDv7 and the end of the random primary key
PostgreSQL 18 ships uuidv7() in core. It looks like a small convenience function, and it ends a decade-long argument about UUID primary keys. The numbers from a 200 million row table show why. The migration path is included, along with the one gotcha around the timestamp you can extract.
postgresqldatabaseperformance+1 more
11 min read14 min listen