Recorded sessions
Section titled “Recorded sessions”Access sessions record SQL queries executed through the PgStack proxy. Each session provides temporary credentials for a project's configured Access role. The returned connection URL can be used with a PostgreSQL client and must be kept private.
Session events
Section titled “Session events”The project's Access view in PgStack lists sessions and their events. Select a session to review its details and recorded SQL queries.

List sessions
Section titled “List sessions”pgstack access listThe CLI lists your active sessions.
Duration and extensions
Section titled “Duration and extensions”Sessions last up to one hour. Specify a duration when starting a session:
pgstack access start --env production --duration 30mAdd time to an active session:
pgstack access extend <session-slug> --duration 15mThe default extension is 15 minutes. Extensions cannot leave more than one hour remaining. Expired or revoked sessions cannot be extended; start a new session when you need access again.
Revoke a session
Section titled “Revoke a session”pgstack access revoke <session-slug> --reason "Investigation complete"Revocation prevents further use of the session credentials. Existing connections close within one minute. Logging out of the CLI does not revoke sessions; revoke them explicitly when you finish early.
Copyright © 2026 PgStack
