News for hackers. Stuff that matters.
Re:Show HN: 128-bit, roughly-ordered, URL-safe UUIDs by httgp on Friday January 22, 2021 @08:03AM (#25871302)
How does one generate ordered UUIDs right on the PostgreSQL server?
Re:Show HN: 128-bit, roughly-ordered, URL-safe UUIDs by Tostino on Friday January 22, 2021 @12:45PM (#25874050)
Use this: https://github.com/tvondra/sequential-uuids

If you cannot install extensions, I just wrote a PL/PGSQL implementation for the time-based generator I could share.

Re:Show HN: 128-bit, roughly-ordered, URL-safe UUIDs by Sytten on Friday January 22, 2021 @02:29PM (#25875262)
Please do I have been looking for that. Posting it in the repo would help a few people k am guessing.
Re:Show HN: 128-bit, roughly-ordered, URL-safe UUIDs by Tostino on Friday January 22, 2021 @03:11PM (#25875780)
Re:Show HN: 128-bit, roughly-ordered, URL-safe UUIDs by solicode on Friday January 22, 2021 @08:17AM (#25871389)
There's probably a nicer way (or more performant at least), but I created a function that uses the built-in `uuid_generate_v1mc` and then reverse the order of the time component so that high values come first.