Written by Sean Behan on Fri Mar 03rd 2017

The first thing you'll need to do is enable the extension

create extension "uuid-ossp";

To test that it's working

select uuid_generate_v1();

For more info on which version of the algorithm you should use refer to the documentation.

Postgres UUID OSSP Documentation


Tagged with..
#Postgres #UUID #Extensions #Pg

Just finishing up brewing up some fresh ground comments...