compact_uuid
compact_uuid · UUID type with canonical 22-character Base64url text
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101977 | compact_uuid | compact_uuid | 0.1.1 | TYPE | MIT | Rust |
PostgreSQL · 18
Usage
Sources:
compact_uuid stores UUIDs in 16 bytes while rendering them as canonical 22-character Base64url text. The reviewed 0.1.1 extension supports PostgreSQL 18.
Core Workflow
Type Compatibility
The type accepts ordinary UUID text and canonical compact text, but always emits the compact representation. Its comparison and hash behavior interoperates with uuid through mixed-type operators and operator families. It supports indexes, primary keys, foreign keys, arrays, and binary COPY.
The shorter display does not reduce UUID storage below 16 bytes. Explicit casts are still required in contexts that need one common SQL type; bidirectional implicit casts are deliberately absent, so mixed-type JOIN USING can require rewriting as an explicit join condition.
Operation
A superuser installs the relocatable extension. No preload is required. PostgreSQL 18 is the current compatibility boundary; validate client codecs and backup/restore behavior before changing an application’s UUID column type.