Skip to main content
Community Extract the version number from a UUID object: UUIDv7

Samples

postgres=# SELECT uuid_version('019913ce-f124-7835-96c7-a2df691caa98');
Returns something like:
 uuid_version
--------------
            7

Arguments

NameTypeDefaultRequiredDescription
uuidUUID-The UUID object to extract the version number from