|
|
|
|
|
by naranha
803 days ago
|
|
uuidv7 will be supported in PostgreSQL 17, at which point generation should be as fast as uuidv4, or if you implement it in pgsql now it will be as fast as the proposed ULID algorithm. Insert performance could be even better, iirc for BTree Indexes monotonic increasing values are better than random ones, but feel free to correct me on that ;) |
|
UUIDv7 support unfortunately didn't make it to Postgres 17, since the RFC wasn't completely finalized yet by the time of feature freeze (April 8), see discussion on pgsql-hackers:
https://www.postgresql.org/message-id/flat/ZhzFQxU0t0xk9mA_%...
So I guess we'll unfortunately have to rely on extensions or client-side generation for the time being, until Postgres 18.