PgStack Access
Section titled “PgStack Access”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.

Highlights
Section titled “Highlights”- 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
Use cases
Section titled “Use cases”- 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.
How it works
Section titled “How it works”- Connect a PostgreSQL database.
- Sign in through the PgStack CLI and start a session.
- Connect using the temporary PostgreSQL URL.
- Review the recorded queries in the project's Access view.
Sessions expire automatically and can be revoked early.
Architecture overview
Section titled “Architecture overview”The PgStack CLI authenticates your account and requests a temporary session. Your PostgreSQL client connects to the proxy using the session's connection URL.
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.
Guides
Section titled “Guides”Copyright © 2026 PgStack
