CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; SELECT uuid_generate_v4(); uuid_generate_v4 -------------------------------------- a81bc81b-dead-4e5d-abff-90865d1e13b1 (1 row) Code language: SQL (Structured Query Language) (sql)