How to Generate a UUID in Postgresql
Update:
I installed the latest version of PostgreSQL on my machine and now this is working:
CREATE EXTENSION pgcrypto;
select gen_random_uuid();
The older version below is less secure so should be avoided.
Update:
I installed the latest version of PostgreSQL on my machine and now this is working:
CREATE EXTENSION pgcrypto;
select gen_random_uuid();
The older version below is less secure so should be avoided.