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
Just finishing up brewing up some fresh ground comments...
Just finishing up brewing up some fresh ground comments...