Skip to content

jsonbx

Jsonb extension functions for PostgreSQL 9.4

jsonbx · Jsonb extension functions for PostgreSQL 9.4

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100152jsonbxjsonbx1.0FUNCPostgreSQLC

Usage

Sources:

jsonbx was a PostgreSQL 9.4 compatibility extension for JSONB manipulation. It supplied pretty-printing, concatenation, deletion by key/index/path, and path replacement before those functions and operators entered PostgreSQL core in 9.5.

SELECT jsonb_pretty('{"a":1,"b":2}'::jsonb);
SELECT '{"a":1}'::jsonb || '{"b":2}'::jsonb;
SELECT '{"a":1,"b":2}'::jsonb - 'a';

Do not install jsonbx on supported PostgreSQL releases. The same object names already exist in core, so the extension script can conflict during CREATE EXTENSION; use the built-in functions and operators shown above instead.

Version 1.0 is historical code tied to the PostgreSQL 9.4 internal JSONB API. It should only be preserved for forensic work on an isolated legacy 9.4 installation. Remove the extension dependency before upgrading such a database, while retaining application SQL that now resolves to core objects.

Table reader