· 1 min read

How to Enable UUIDs in Postgres

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

Comments

Leave a comment