postgresql_16:3.6.14 UUID Functions
PostgreSQL 16 > The SQL Language > Functions and Operators > UUID Functions
PostgreSQL includes one function to generate a UUID: gen_random_uuid () uuid This function returns a version 4 (random) UUID. This is the most commonly used type of UUID and is appropriate for most applications.
The (see postgresql_16:9.6.49) module provides additional functions that implement other standard algorithms for generating UUIDs.
PostgreSQL also provides the usual comparison operators shown in (see functions-comparison-op-table) for UUIDs.