News for hackers. Stuff that matters.
Re:Avoid UUIDv4 Primary Keys by sgarland on Monday December 15, 2025 @07:04PM (#46282850)
You can hand out chunks of sequential ids from a central coordinator to avoid collision; this is a well-established pattern.

Re: natural keys (or something like it), I was using it as an example of how badly PK choice can impact performance at scale.

Re:Avoid UUIDv4 Primary Keys by liuliu on Tuesday December 16, 2025 @12:47PM (#46291653)
> You can hand out chunks of sequential ids from a central coordinator to avoid collision; this is a well-established pattern.

The problem is: is that part of postgresql? If not, someone has to write the buggy code for that well-established pattern. (BTW, I honestly think autoincrement is fine and the choice of PK is so minor you can always pay your way to solve it if you really have a problem at scale).