uuid_bytea
Convert PostgreSQL UUID values to and from 16-byte binary values
uuid_bytea · Convert PostgreSQL UUID values to and from 16-byte binary values
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102127 | uuid_bytea | uuid_bytea | 1.0 | FUNC | C |
PostgreSQL · 9.1
Usage
Sources:
- postgresql/uuid_bytea/README
- postgresql/uuid_bytea/uuid_bytea–1.0.sql
- postgresql/uuid_bytea/uuid_bytea.c
- postgresql/uuid_bytea/uuid_bytea.control
uuid_bytea is a small experimental C extension for explicit conversion between uuid and bytea. The upstream author describes it as toy code tested on PostgreSQL 9.1.
Core Workflow
Operational Boundaries
uuid_to_bytea returns the UUID’s 16 bytes; bytea_to_uuid converts a 16-byte value back. Explicit casts are also installed. Do not supply arbitrary-length binary values or assume that UUID textual byte order describes an external protocol.
Installation requires a superuser. No preload is specified. The historical test environment does not establish current compatibility, and the reviewed directory provides no license declaration.