Skip to content

pg_jq

Toy extension exposing libjq filters for PostgreSQL json and jsonb values.

pg_jq · Toy extension exposing libjq filters for PostgreSQL json and jsonb values.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101563pg_jqpg_jq1.0UTILAGPL-3.0-or-laterRust

Usage

Sources:

pg_jq — This is a toy PostgreSQL extension that exposes basic libjq functionality to PostgreSQL. Use it for the corresponding SQL or database utility workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pg_jq;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • json_jq is an extension function.
  • jsonb_jq is an extension function.
  • what_is_something_carlson_likes() is an extension function.

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • The control file marks the extension as non-relocatable.
  • The control file does not require superuser-only installation.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader