News for hackers. Stuff that matters.
Re:Auto increment is a terrible idea by ryebit on Thursday November 30, 2017 @11:00AM (#15816735)
While the article doesn't mention it, I think the recommended uuid function for postgres is uuid_generate_v1mc() from https://www.postgresql.org/docs/10/static/uuid-ossp.html

This generates a v1 uuid, so the first few bytes are time dependant, which reduces fragmentation compared to v4 uuids. At the same time, it generates random values for the "mac" section, so it isn't as host-specific and low-entropy as a normal v1 uuid.

There are no comments on this comment yet.