jsonb_set_lax
Backport of PostgreSQL 13 jsonb_set_lax for PostgreSQL 9.5 through 12
jsonb_set_lax · Backport of PostgreSQL 13 jsonb_set_lax for PostgreSQL 9.5 through 12
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100556 | jsonb_set_lax | jsonb_set_lax | 1.0.0 | FUNC | PostgreSQL | C |
PostgreSQL · 10, 11, 12
Usage
Sources:
jsonb_set_lax backports PostgreSQL 13’s same-named function to PostgreSQL 9.5 through 12. It changes how an SQL NULL replacement is handled: use_json_null, delete_key, return_target, or raise_exception can be selected.
The extension installs into pg_catalog and is not relocatable. Its source deliberately refuses PostgreSQL 13 and later, where the core implementation should be used instead. Distinguish SQL NULL from JSON null, validate the treatment string, and test missing paths and arrays before migrating logic between this backport and a newer server.