jsonb_plpython2u
Historical transform between jsonb and the untrusted PL/Python 2 language.
jsonb_plpython2u · Historical transform between jsonb and the untrusted PL/Python 2 language.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101420 | jsonb_plpython2u | jsonb_plpython2u | 1.0 | LANG | Unknown | C |
| Relationships | |
|---|---|
| Requires | plpython2u |
Usage
Sources:
- Official documentation
- Official extension control file (jsonb_plpython2u.control)
- Official extension SQL (jsonb_plpython2u–1.0.sql)
jsonb_plpython2u — Historical transform between jsonb and the untrusted PL/Python 2 language. Use it when database code must run in or interoperate with this procedural language. The reviewed upstream project is archived or no longer maintained.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
jsonb_to_plpython2(val internal)is an extension function and returnsinternal.plpython2_to_jsonb(val internal)is an extension function and returnsjsonb.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - Install the confirmed extension dependencies first:
plpython2u. - The control file marks the extension as relocatable.
- This historical transform depends on
plpython2u; current PostgreSQL uses the Python 3 transform variant instead. - Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.