Generate Random UUIDs Without An Extension
Last updated
Was this helpful?
Last updated
Was this helpful?
In other posts I've covered how to generate v4 random UUIDs in PostgreSQL as well as the more up-to-date method of .
As of PostgreSQL v13, you no longer need to add an extension for v4 UUID generation. It comes built-in as the gen_random_uuid()
function.
If you need other non-v4 UUID functions, you'll have to stick with .