Universally Unique Lexicographically Sortable Identifier (ULID) for PostgreSQL
PLpgSQL
356
3 commits
updated Jan 10, 2023
A PostgreSQL (pgcrypto) implementation of alizain/ulid based on OK Log's Go port.
A GUID/UUID can be suboptimal for many use-cases because:
A ULID however:
SELECT generate_ulid(); -- Output: 01D45VGTV648329YZFE7HYVGWC
Below is the current specification of ULID as implemented in this repository.
Timestamp
Entropy
01AN4Z07BY 79KA1307SR9X4MV3
|----------| |----------------|
Timestamp Entropy
10 chars 16 chars
48bits 80bits
base32 base32
PLpgSQL
100.0%
Universally Unique Lexicographically Sortable Identifier (ULID) for PostgreSQL
PLpgSQL
356
3 commits
updated Jan 10, 2023
A PostgreSQL (pgcrypto) implementation of alizain/ulid based on OK Log's Go port.
A GUID/UUID can be suboptimal for many use-cases because:
A ULID however:
SELECT generate_ulid(); -- Output: 01D45VGTV648329YZFE7HYVGWC
Below is the current specification of ULID as implemented in this repository.
Timestamp
Entropy
01AN4Z07BY 79KA1307SR9X4MV3
|----------| |----------------|
Timestamp Entropy
10 chars 16 chars
48bits 80bits
base32 base32
PLpgSQL
100.0%