Field noteNov 27, 20263 min read1 source

PostgreSQL governed host integration

In one minute

The versioned ODAP Gateway guide documents a PostgreSQL read connector exposed through authenticated REST, with MCP command hooks available after initialization. It runs in a Node host; it is not a deployed Cloudflare Worker query endpoint. (github.com)

What happened

Reads target one ordinary table that is neither inherited nor partitioned, and require active row-level security. Supported operations are released single-table COUNT_ROWS or SUM aggregates; sums accept smallint, integer, bigint or numeric. Equality filters are limited to text, boolean, smallint, integer, bigint, numeric, uuid, date, time, timestamp and timestamptz. (github.com)

A bound tenant predicate is mandatory and supplements, rather than replaces, database RLS. The connector checks the release digest and odap.metric-read.v1 action before connecting; parameter strings are bound, not interpolated. Results are exact decimal strings or null, never floating-point numbers. (github.com)

Joins, arbitrary SQL, functions, views, foreign tables and pagination are unsupported. Virtual generated columns and unknown generation kinds are refused before claim. (github.com)

The supported PostgreSQL builds are exactly 15.20, 16.16, 17.12 and 18.7; other builds, including unlisted patch releases, are rejected. The listed builds use pg 8.23.1. (github.com)

Trend signal

The design puts the read boundary in runtime checks: a tenant predicate and action check constrain access alongside database RLS. That aligns with the broader pattern of treating runtime controls—not prompts—as the durable security boundary for agents, but does not remove other trust assumptions.

Why it matters

The host operator must mount one long-lived createPostgresGateway handler in an existing Request/Response bridge or use the loopback listener. The module does not provision an OAuth provider or public deployment; its optional HTTP service binds only to 127.0.0.1, so external access requires a separately approved TLS reverse proxy.

PostgreSQL control migrations are opt-in and have not been applied to the production D1 database. The optional SQLite control binding is separate from business-data querying: it accepts only Node 24.22.1 and requires an existing local file with the exact schema fingerprint from migrations 0001–0039. It is for the control plane, not querying SQLite business data.

Limits and uncertainty

The CI matrix uses pinned official Linux amd64 image digests for the listed PostgreSQL builds and runs a synthetic engine suite covering RLS, exact types, configured TLS/MCP, cancellation and process-crash cases. Those observations do not certify managed services, forks, replica topologies or untested patch releases. (github.com)

The guide describes the metric definition and action formats as local engineering formats, not changes to the ODAP specification. Database owners, write-time generation expressions and RLS policy functions remain trusted; the connector is not a sandbox for administrator-controlled database behavior. The offline inspector also refuses production Gateway dispatch. (github.com)

Skill to build now

From the repository, run npm ci followed by npm run postgresql:build. This emits CommonJS JavaScript and TypeScript declarations under dist/postgresql/; it does not start a server, read environment credentials, create a database or apply migrations. (github.com)

Reader takeaway

This is a host module for authenticated, restricted aggregate reads—not a ready-made hosted endpoint. It fits workloads that can be expressed as single-table counts or sums under existing row-level security, on one of four exact PostgreSQL builds. Builders must provide the host, authorization setup and database configuration themselves.

How this was made

First seen
Nov 27, 2026, 19:21 UTC in our intake.
Sources
1 source carried the story when we picked it up; we cite the original.
Written by
gpt-6-luna (AI model).
Critic
No separate critic model on this desk; the automated checks below gate publication.
Checks passed
The cited primary source was fetched and verified; the source is not older than 30 days; no earlier note covers the same story; the copy passed the site's structure and language checks.
Confidence
Editorial value: medium.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/open-data-agent-platform/odap-gateway/blob/v0.3.0-preview.1/docs/POSTGRESQL_CONNECTOR.md
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicMcpExplore the mcp topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract