pg_optigraph
pg Optigraph is a PostgreSQL extension which uses OptiGraph ML model.
pg_optigraph · pg Optigraph is a PostgreSQL extension which uses OptiGraph ML model.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101589 | pg_optigraph | pg_optigraph | 0.1.0 | RAG | MIT | Python |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_optigraph.control)
- Official extension SQL (pg_optigraph–0.1.0.sql)
pg_optigraph — pg Optigraph is a PostgreSQL extension which uses OptiGraph ML model. Use it for the corresponding vector, model, or retrieval workflow. 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
optigraph.extract_plans(query_text TEXT)is an extension function and returnsTABLE.optigraph.health_check()is an extension function and returnsTABLE.optigraph.reset_stats()is an extension function and returnsVOID.optigraph.stats()is an extension function and returnsTABLE.optigraph.status()is an extension function and returnsTABLE.optigraph.test_optimize()is an extension function and returnsTABLE.optigraph.configurationis an extension-defined view.optigraphis a schema created by the extension.
Requirements and Caveats
- The reviewed control file declares default version
0.1.0. - The control file marks the extension as non-relocatable.
- The control file requires a superuser for installation.
- The control file marks the extension as not trusted.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.