jsonb_plpythonu
jsonb_plpythonu · Transform between JSONB and PL/PythonU values
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101019 | jsonb_plpythonu | jsonb_plpythonu | 1.0 | LANG | Unknown | C |
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18
| Relationships | |
|---|---|
| Requires | plpythonu |
Usage
Sources:
jsonb_plpythonu version 1.0 defines a PostgreSQL transform between jsonb and PL/Python values. Functions that explicitly request TRANSFORM FOR TYPE jsonb receive Python dictionaries, lists, strings, numbers, booleans, or None instead of the default textual representation and can return those values as jsonb.
Transform use
This exact extension depends on the legacy unversioned plpythonu language and its control/module metadata references the Python-2-era library name. Modern PostgreSQL installations generally use the sibling jsonb_plpython3u variant instead. PL/Python is untrusted, so only superusers can create its functions. The repository has not changed since 2017; verify Python/PostgreSQL ABI compatibility and numeric/container round trips, and do not load the legacy variant merely to run current Python code.