Skip to content

ubjson

Experimental JSONB-compatible type with a custom binary transfer format

jsonb_parser · Experimental JSONB-compatible type with a custom binary transfer format

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102124ubjsonjsonb_parser0.0.1TYPELGPL-3.0-onlyC

Usage

Sources:

ubjson is the PostgreSQL component of the jsonb format parser project. It uses JSONB-compatible input/output and storage with its own binary send/receive functions for client transfer.

Core Workflow

CREATE EXTENSION ubjson;
SELECT '{"answer":42}'::jsonb::ubjson;
SELECT ('{"answer":42}'::jsonb::ubjson)::jsonb;

Operational Boundaries

The type shares JSONB’s textual representation and supports assignment casts in both directions without copying. Its binary representation is a separate protocol; clients must use a matching decoder rather than treating it as ordinary PostgreSQL JSONB wire data. This does not add a general-purpose JSON query language.

Creating the C extension requires a superuser. No preload is specified. The source is experimental and supplies no PostgreSQL-major support matrix; evaluate binary compatibility before upgrading either client or server.

Table reader