Skip to content

PostgreSQL Warehouse Integration

Connect your internal Postgres analytics database or production replicas to allow agents to query data directly.

Read-Only Security Guardrails

Zonrad strictly enforces zero-mutation access for standard data queries:

  1. Transaction Wrapping: All queries execute within read-only transactions:
    SET TRANSACTION READ ONLY;
    SET statement_timeout = '30s';
  2. Blocked Statements: The SQL parser rejects INSERT, UPDATE, DELETE, DROP, ALTER, TRUNCATE, and multi-statement queries.
  3. Row Limits: Results are hard-capped at 10,000 rows to prevent worker out-of-memory errors.

Adding a Connection

Navigate to Settings → Integrations → PostgreSQL and provide your connection URI:

postgres://zonrad_reader:PASSWORD@db.company.com:5432/analytics?sslmode=require