pg_ai_stewards
pg-ai-stewards · PostgreSQL-backed agent state, work queues and model dispatch
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102014 | pg_ai_stewards | pg-ai-stewards | 0.3.0 | RAG | Apache-2.0 | Rust |
PostgreSQL · 18
| Relationships | |
|---|---|
| Requires | vector |
Usage
Sources:
- extension/README.md
- extension/Cargo.toml
- extension/pg_ai_stewards.control
- extension/src/lib.rs
- extension/src/bgworker.rs
- extension/init/00-extensions.sql
pg_ai_stewards 0.3.0 stores agent state, work queues, model configuration and dispatch results in PostgreSQL 18. The native Rust core depends on vector; its generated installation SQL embeds the migration chain at the pinned source revision.
Enable and inspect
Preserve other entries when adding the preload library and restart PostgreSQL. The worker connects to the database named by the server environment variable POSTGRES_DB, defaulting to stewards; create the extension in that database.
Runtime boundary
Creation requires a superuser. Preloading registers dispatch workers; STEWARDS_DISPATCHER_WORKERS defaults to 4 and is bounded to 1–16. Provider configuration determines credentials, models and destinations. An echo task checks the queue path without requiring a real model; actual inference needs configured providers.
The stewards schema contains queues, configuration, pipelines and history. Restrict access to credentials and dispatch/tool functions, and review external requests and workload costs. The upstream deployment also applies a runtime migration manifest and optional overlays: these are separate from the core extension bundle. Follow manifest order rather than replaying SQL files alphabetically. Installing the companion pack or UI is not implied by creating the core.