logoalt Hacker News

K0nservyesterday at 11:58 AM1 replyview on HN

An additional thing I learned when I worked on a ulid alternative over the weekend[0] is: Postgres's internal Datum type is at most 64 bits which means every uuid requires heap allocation[1] (at least until we get 128 bit machines).

0: https://bsky.app/profile/hugotunius.se/post/3m7wvfokrus2g

1: https://github.com/postgres/postgres/blob/master/src/backend...


Replies

qntmfredyesterday at 7:58 PM

you may be interested in this postgres extension as well

https://github.com/blitss/typeid-postgres

show 1 reply