Skip to content

PgStack Access records SQL queries executed by engineers and AI agents during temporary PostgreSQL sessions. Session details and recorded queries can be reviewed in the project's Access view.

Each session provides temporary connection credentials for psql, a GUI, or another PostgreSQL client.

Recorded PgStack Access session showing SQL queries and connection details

  • Recorded SQL queries and connection events available for review
  • Temporary PostgreSQL credentials with an expiration
  • Sessions that can be extended or revoked early
  • Optional read-only sessions to guard against accidental writes
  • AI agent instructions for temporary database access
  • Production troubleshooting: Temporary access to live data, with a record of all executed queries.
  • AI agents: Task-specific database access with expiring credentials and SQL events for review.
  • Data fixes: Time-limited access for data corrections, with the executed queries recorded.
  • Team access: Individual temporary sessions instead of shared permanent database credentials.
  1. Connect a PostgreSQL database.
  2. Sign in through the PgStack CLI and start a session.
  3. Connect using the temporary PostgreSQL URL.
  4. Review the recorded queries in the project's Access view.

Sessions expire automatically and can be revoked early.

The PgStack CLI authenticates your account and requests a temporary session. Your PostgreSQL client connects to the proxy using the session's connection URL.

PgStack Access architecture showing live SQL traffic through the proxy to PostgreSQL and the event pipeline through a queue, processor, storage, and query server

The proxy forwards queries to your PostgreSQL database and sends connection and query events to a queue. A processor stores those events separately from your database. The query server reads the stored Access events.

Access and Audit can be used independently.