pg_uuidv7
Create UUIDv7 values in postgres
Repository
fboulnois/pg_uuidv7
https://github.com/fboulnois/pg_uuidv7
Source
pg_uuidv7-1.7.0.tar.gz
pg_uuidv7-1.7.0.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4520 | pg_uuidv7 | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 1.7.0 | 1817161514 | pg_uuidv7 | - |
| RPM | PGDG | 1.7.0 | 1817161514 | pg_uuidv7_$v | - |
| DEB | PIGSTY | 1.7.0 | 1817161514 | postgresql-$v-pg-uuidv7 | - |
Build
You can build the DEB packages for pg_uuidv7 using pig build:
Install
You can install pg_uuidv7 directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Functions
| Function | Description |
|---|---|
uuid_generate_v7() | Generate a new UUIDv7 |
uuid_v7_to_timestamptz(uuid) | Extract the timestamp from a UUIDv7 |
uuid_timestamptz_to_v7(timestamptz [, bool]) | Convert a timestamp to a UUIDv7 (set second arg to true to zero the random bits) |
Examples
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)