sequential_uuids
generator of sequential UUIDs
sequential_uuids : generator of sequential UUIDs
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4570 | sequential_uuids | sequential_uuids | 1.0.3 |
FUNC | MIT | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | pg_uuidv7 snowflake pg_idkit pgx_ulid pg_uuid_v8 uuid-ossp typeid permuteseq |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 1.0.3 |
18 17 16 15 14 | sequential_uuids |
- |
| RPM | PGDG | 1.0.3 |
18 17 16 15 14 | sequential_uuids_$v |
- |
| DEB | PIGSTY | 1.0.3 |
18 17 16 15 14 | postgresql-$v-sequential-uuids |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| el8.aarch64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| el9.x86_64 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 |
| el9.aarch64 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 |
| el10.x86_64 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 |
| el10.aarch64 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 | PGDG 1.0.3 |
| d12.x86_64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| d12.aarch64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| d13.x86_64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| d13.aarch64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| u22.x86_64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| u22.aarch64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| u24.x86_64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| u24.aarch64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| u26.x86_64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
| u26.aarch64 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 | PIGSTY 1.0.3 |
Source
github.com/tvondra/sequential-uuids
sequential-uuids-1.0.3.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
sequential_uuids: sequential UUID generators for better index locality
Generates UUIDs with sequential patterns to reduce random I/O in indexes while maintaining sufficient randomness to avoid collisions.
Functions
| Function | Description |
|---|---|
uuid_sequence_nextval(sequence regclass, block_size int DEFAULT 65536, block_count int DEFAULT 65536) |
Generate a sequential UUID based on a sequence |
uuid_time_nextval(interval_length int DEFAULT 60, interval_count int DEFAULT 65536) |
Generate a sequential UUID based on current timestamp |