jsquery

Website

https://github.com/postgrespro/jsquery/

Description

jsquery is a language to query jsonb data type.

It's primary goal is to provide an additional functionality to jsonb (currently missing in PostgreSQL), such as a simple and effective way to search in nested objects and arrays, more comparison operators with indexes support. We hope, that jsquery will be eventually a part of PostgreSQL.

Jsquery is released as jsquery data type (similar to tsquery) and @@ match operator for jsonb.

Package naming convention

The PostgreSQL RPM repository uses PostgreSQL version numbers in the RPM packages. For example jsquery for PostgreSQL 18 is named as jsquery_18. Similarly jsquery for PostgreSQL 17 is named as jsquery_17.

Subpackages

jsquery provides the following subpackages:

  • devel: JsQuery development header files
  • llvmjit: Provides just-in-time compilation support for jsquery

Package specifications and repository requirements

PostgreSQL PGDG RPM repository

Install PGDG repository from: https://zypp.postgresql.org/repopackages/

Installation

OS Command
SuSE Enterprise Linux 15 / 16, OpenSuSE Leap 16.0 zypper install jsquery_18 (or change the version as described above)

Post-installation

Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION jsquery;

Available packages

PostgreSQL version(s) OS version Arch Status
18,17,16,15,14 SuSE Enterprise Linux 16 x86_64 Available
18,17,16,15,14 OpenSuSE Leap 16.0 x86_64 Available
18,17,16,15,14 SuSE Enterprise Linux 15 x86_64 Available