Audit quickstart
Section titled “Audit quickstart”You need a PgStack account, a PostgreSQL database with logical replication support, and permission to configure replication on that database.
1. Prepare PostgreSQL
Section titled “1. Prepare PostgreSQL”Use the upstream PostgreSQL guide and the instructions for your hosting provider. Check the WAL level, replication permissions, and network connectivity. On PostgreSQL 18 and earlier, changing wal_level to logical requires a restart.
2. Connect your database
Section titled “2. Connect your database”Sign in to PgStack, create or select a project, and configure Audit with your upstream PostgreSQL connection details. Choose the tables to track and review the connection status.
3. Verify a change
Section titled “3. Verify a change”Insert, update, or delete a test row in a tracked table. Open the project's Audit view and look for its table, primary key, operation, timestamp, and before-and-after values. Allow time for asynchronous capture.
4. Add application context
Section titled “4. Add application context”An ORM integration can attach context such as a user ID, request path, or job name to application changes. Follow the integration's installation and migration instructions, then make another change through your application to verify that context appears.
5. Query history
Section titled “5. Query history”Use the PgStack database connection details in your project settings to query changes with a PostgreSQL client or your ORM. Keep the PgStack database connection separate from your application's upstream PostgreSQL connection.
Copyright © 2026 PgStack
