pg_extism
An Extism sample showing how you can run Extism plugins from PostgreSQl using pgrx!
pg_extism · An Extism sample showing how you can run Extism plugins from PostgreSQl using pgrx!
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (pg_extism.control)
- Official implementation source
pg_extism — An Extism sample showing how you can run Extism plugins from PostgreSQl using pgrx! Use it when database code must run in or interoperate with this procedural language. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
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
extism_callis an extension function.extism_defineis an extension function.to_lowercaseis an extension function.
Requirements and Caveats
- The catalog records version
0.0.0. - The control file marks the extension as non-relocatable.
- The control file requires a superuser for installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.