pg_slim
pg_slim · Compact JSON-like SLIM data type and JSONB conversions
Overview
Usage
Sources:
pg_slim 0.1.0 adds the slim type, JSONB conversions, field access, containment and comparison operators. It is an early storage-format implementation, not a guaranteed space-saving replacement for JSONB.
Core Workflow
Operational Boundaries
slim_encode and slim_decode convert JSONB and slim values. slim_typeof, slim_array_length, slim_object_keys and slim_pretty inspect values. B-tree and hash operator classes are supplied; a GIN operator class is not implemented. Some operations decode to JSONB internally and updates replace the entire value.
Install as a superuser. The source declares no preload requirement and no complete major-version support matrix; the installation example uses PostgreSQL 15. Measure actual storage and query costs and validate round trips before moving application data.