uuid_v1
uuid_v1 · Timestamp-ordered UUID version 1 data type
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102126 | uuid_v1 | uuid_v1 | 0.1 | TYPE | Apache-2.0 | C |
Usage
Sources:
uuid_v1 stores version-1 UUIDs in a type whose ordering favors the timestamp component. It supplies comparison operators, casts to/from uuid, B-tree support and component extraction functions.
Core Workflow
Operational Boundaries
uuid_v1_get_timestamp returns timestamptz, uuid_v1_get_epoch returns an immutable epoch value, and uuid_v1_get_clockseq and uuid_v1_get_node expose the remaining components. Timestamp comparison operators compare full precision; a second-rounded timestamp need not equal a UUID with fractional seconds.
This extension consumes version-1 UUIDs rather than generating them. Installation requires a superuser and its C library; no preload is needed. No current PostgreSQL-major matrix is declared. Choose the epoch helper for immutable expression indexes as documented upstream.