is_jsonb_valid
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
is_jsonb_valid | 0.1.4 | FEAT | MIT | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2765 | is_jsonb_valid | No | Yes | No | Yes | No | No | - |
| Related | pg_jsonschema jsonschema postgres-json-schema jsquery |
|---|
Remote $ref and format validation are unsupported; local $ref resolution is limited. Ships two libraries under one extension identity.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1.4 | 1817161514 | is_jsonb_valid | - |
| RPM | PIGSTY | 0.1.4 | 1817161514 | is_jsonb_valid_$v | - |
| DEB | PIGSTY | 0.1.4 | 1817161514 | postgresql-$v-is-jsonb-valid | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.1.4 el8.x86_64.pg18 : is_jsonb_valid_18 is_jsonb_valid_18-0.1.4-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.4 el8.x86_64.pg17 : is_jsonb_valid_17 is_jsonb_valid_17-0.1.4-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.4 el8.x86_64.pg16 : is_jsonb_valid_16 is_jsonb_valid_16-0.1.4-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.4 el8.x86_64.pg15 : is_jsonb_valid_15 is_jsonb_valid_15-0.1.4-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.4 el8.x86_64.pg14 : is_jsonb_valid_14 is_jsonb_valid_14-0.1.4-1PGSTY.el8.x86_64.rpm
|
| el8.aarch64 | PIGSTY 0.1.4 el8.aarch64.pg18 : is_jsonb_valid_18 is_jsonb_valid_18-0.1.4-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.4 el8.aarch64.pg17 : is_jsonb_valid_17 is_jsonb_valid_17-0.1.4-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.4 el8.aarch64.pg16 : is_jsonb_valid_16 is_jsonb_valid_16-0.1.4-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.4 el8.aarch64.pg15 : is_jsonb_valid_15 is_jsonb_valid_15-0.1.4-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.4 el8.aarch64.pg14 : is_jsonb_valid_14 is_jsonb_valid_14-0.1.4-1PGSTY.el8.aarch64.rpm
|
| el9.x86_64 | PIGSTY 0.1.4 el9.x86_64.pg18 : is_jsonb_valid_18 is_jsonb_valid_18-0.1.4-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.4 el9.x86_64.pg17 : is_jsonb_valid_17 is_jsonb_valid_17-0.1.4-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.4 el9.x86_64.pg16 : is_jsonb_valid_16 is_jsonb_valid_16-0.1.4-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.4 el9.x86_64.pg15 : is_jsonb_valid_15 is_jsonb_valid_15-0.1.4-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.4 el9.x86_64.pg14 : is_jsonb_valid_14 is_jsonb_valid_14-0.1.4-1PGSTY.el9.x86_64.rpm
|
| el9.aarch64 | PIGSTY 0.1.4 el9.aarch64.pg18 : is_jsonb_valid_18 is_jsonb_valid_18-0.1.4-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.4 el9.aarch64.pg17 : is_jsonb_valid_17 is_jsonb_valid_17-0.1.4-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.4 el9.aarch64.pg16 : is_jsonb_valid_16 is_jsonb_valid_16-0.1.4-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.4 el9.aarch64.pg15 : is_jsonb_valid_15 is_jsonb_valid_15-0.1.4-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.4 el9.aarch64.pg14 : is_jsonb_valid_14 is_jsonb_valid_14-0.1.4-1PGSTY.el9.aarch64.rpm
|
| el10.x86_64 | PIGSTY 0.1.4 el10.x86_64.pg18 : is_jsonb_valid_18 is_jsonb_valid_18-0.1.4-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.4 el10.x86_64.pg17 : is_jsonb_valid_17 is_jsonb_valid_17-0.1.4-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.4 el10.x86_64.pg16 : is_jsonb_valid_16 is_jsonb_valid_16-0.1.4-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.4 el10.x86_64.pg15 : is_jsonb_valid_15 is_jsonb_valid_15-0.1.4-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.4 el10.x86_64.pg14 : is_jsonb_valid_14 is_jsonb_valid_14-0.1.4-1PGSTY.el10.x86_64.rpm
|
| el10.aarch64 | PIGSTY 0.1.4 el10.aarch64.pg18 : is_jsonb_valid_18 is_jsonb_valid_18-0.1.4-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.4 el10.aarch64.pg17 : is_jsonb_valid_17 is_jsonb_valid_17-0.1.4-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.4 el10.aarch64.pg16 : is_jsonb_valid_16 is_jsonb_valid_16-0.1.4-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.4 el10.aarch64.pg15 : is_jsonb_valid_15 is_jsonb_valid_15-0.1.4-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.4 el10.aarch64.pg14 : is_jsonb_valid_14 is_jsonb_valid_14-0.1.4-1PGSTY.el10.aarch64.rpm
|
| d12.x86_64 | PIGSTY 0.1.4 d12.x86_64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.4 d12.x86_64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.4 d12.x86_64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.4 d12.x86_64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.4 d12.x86_64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 0.1.4 d12.aarch64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.4 d12.aarch64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.4 d12.aarch64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.4 d12.aarch64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.4 d12.aarch64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 0.1.4 d13.x86_64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.4 d13.x86_64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.4 d13.x86_64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.4 d13.x86_64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.4 d13.x86_64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 0.1.4 d13.aarch64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.4 d13.aarch64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.4 d13.aarch64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.4 d13.aarch64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.4 d13.aarch64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 0.1.4 u22.x86_64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.4 u22.x86_64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.4 u22.x86_64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.4 u22.x86_64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.4 u22.x86_64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 0.1.4 u22.aarch64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.4 u22.aarch64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.4 u22.aarch64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.4 u22.aarch64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.4 u22.aarch64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 0.1.4 u24.x86_64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.4 u24.x86_64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.4 u24.x86_64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.4 u24.x86_64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.4 u24.x86_64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 0.1.4 u24.aarch64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.4 u24.aarch64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.4 u24.aarch64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.4 u24.aarch64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.4 u24.aarch64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY 0.1.4 u26.x86_64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.4 u26.x86_64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.4 u26.x86_64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.4 u26.x86_64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.4 u26.x86_64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~resolute_amd64.deb
|
| u26.aarch64 | PIGSTY 0.1.4 u26.aarch64.pg18 : postgresql-18-is-jsonb-valid postgresql-18-is-jsonb-valid_0.1.4-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.4 u26.aarch64.pg17 : postgresql-17-is-jsonb-valid postgresql-17-is-jsonb-valid_0.1.4-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.4 u26.aarch64.pg16 : postgresql-16-is-jsonb-valid postgresql-16-is-jsonb-valid_0.1.4-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.4 u26.aarch64.pg15 : postgresql-15-is-jsonb-valid postgresql-15-is-jsonb-valid_0.1.4-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.4 u26.aarch64.pg14 : postgresql-14-is-jsonb-valid postgresql-14-is-jsonb-valid_0.1.4-1PGSTY~resolute_arm64.deb
|
Build
You can build the RPM / DEB packages for is_jsonb_valid using pig build:
Install
You can install is_jsonb_valid directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
Sources:
- Official README at the catalog source revision
- Extension control file at the catalog source revision
- Version 0.1.4 extension SQL
- PGXN distribution page
is_jsonb_valid provides native boolean validation of JSONB values against JSON Schema Draft 4 or Draft 7. It is suitable for checks and predicates that need only pass/fail output; it does not return a path or diagnostic explaining a failed keyword.
Core Workflow
Choose the function that matches the schema draft and pass the schema first, followed by the value being validated.
The two functions are strict and immutable in version 0.1.4. This makes them usable in constraints and indexes when the schema is stable.
Draft Boundary and Limitations
The base validator follows Draft 4; the explicitly named alternative follows Draft 7. Select deliberately, because keyword meaning differs between drafts and the extension does not infer the draft from a schema declaration.
At the pinned revision, remote references are unsupported. Local references are limited to definitions reachable from the schema root, and identifier changes along a reference chain are not resolved. Format validation is also unsupported. These gaps mean a true result is only a claim about the implemented subset, not every behavior in the complete JSON Schema specifications.
No preload or restart is declared. Keep schema literals and application expectations under version control, and add representative valid and invalid cases whenever a constraint depends on this extension.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)