https://github.com/postgrespro/jsquery/
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.
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.
jsquery provides the following subpackages:
Install PGDG repository from: https://zypp.postgresql.org/repopackages/
| OS | Command |
|---|---|
| SuSE Enterprise Linux 15 / 16, OpenSuSE Leap 16.0 | zypper install jsquery_18 (or change the version as described above) |
Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION jsquery;
| 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 |