Skip to main content
PostgresVFS connects to a Postgres database via a DSN and exposes its schemas and tables as a tree the agent can list, read, and grep.

Config

For DSN format and permissions, see Postgres Setup.

Mount mode

read only. Postgres mounts are read-only at the VFS level.

Snapshot behavior

The DSN is redacted on snapshot. Loading a snapshot back requires a config file that supplies a fresh DSN.

File size and du

rows.jsonl is rendered on demand. stat -c %s and ls -l show - when its rendered byte length is unknown; physical table storage is never used as a file size. stat checks existence and type without fetching columns, row counts, or relation sizes. Planner counts cannot identify content changes, so they are not used as a content fingerprint. The metadata JSON files expose explicitly named row and storage estimates. Use wc -c rows.jsonl for the rendered byte count; reading the whole export is subject to the configured row and byte limits.