pg_gpt
Experimental extension that brings OpenAI API to your PostgreSQL to run queries in human language.
pg_gpt · Experimental extension that brings OpenAI API to your PostgreSQL to run queries in human language.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101550 | pg_gpt | pg_gpt | 0.0.0 | RAG | Apache-2.0 | Rust |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_gpt.control)
- Official implementation source
pg_gpt — Experimental PostgreSQL extension that enables the use of OpenAI GPT API inside PostgreSQL, allowing for queries to be written using natural language. Use it for the corresponding vector, model, or retrieval workflow. Upstream describes this capability as experimental.
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
gptis an extension function.gpt_tablesis 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.
- Upstream labels part or all of the project experimental.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.