Postgres
Tables, queries, history and live sessions for any Postgres, plus RDS and Aurora read through your AWS connection.
Postgres
The Postgres page has two parts:
- Your Postgres, read from Postgres's own statistics, for any database Rocketgraph can reach.
- AWS RDS and Aurora, read through AWS, when AWS is connected.
You can use either or both.
Connecting a database
Connect it on Connectors under Databases. See Postgres. It works with Supabase, Neon, RDS, Aurora, Cloud SQL, Railway, Render and self-hosted Postgres.
The connector gives you SQL to make a monitoring login:
CREATE ROLE rocketgraph_monitor WITH LOGIN PASSWORD 'choose-a-long-password';
GRANT pg_monitor TO rocketgraph_monitor;
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
That login is only a member of pg_monitor. It can read statistics. It can't read or change your rows.
Rocketgraph also opens every session read-only, with an 8-second limit on each statement, so a slow statistics query can't hold anything up on your side.
What the page shows
At the top: database size, number of tables, connections out of the maximum, cache hit rate, and total transactions.
Four tabs share one search box, which filters whichever tab is open. Every column sorts.
Tables. Estimated rows, size, dead rows, inserts, updates, deletes, full scans, index scans, and when it was last vacuumed. Two things are highlighted:
- more than 20% dead rows (vacuum is falling behind)
- a large table read by full scans more than by index (a missing index?)
Queries. From pg_stat_statements: each query's calls, average time, total time and rows. Click a query to read all of it. Rocketgraph's own monitoring queries are left out.
History. What changed, in five-minute steps. For example "orders: 120 inserted, 4 deleted" or "ran 3,400× · 2.1 s total". Pick the last hour, 24 hours or 7 days.
Running now. Current sessions: PID, user, app, state, how long, what it is waiting on, and the query. Active queries running over a minute are highlighted.
How history works
Postgres statistics are running totals since they were last reset. About every five minutes, Rocketgraph reads the totals, subtracts the previous ones, and stores the difference. That is the History tab.
- The first look at a database sets the starting point. Nothing before it counts as history.
- If a total goes down, the statistics were reset, and the new total is what happened since.
- History is kept for 7 days.
- The first entries appear about ten minutes after you connect.
AWS RDS and Aurora
When your organisation is connected to AWS, the page lists every RDS and Aurora instance in the connected region. Rocketgraph never connects to these databases. It reads what AWS already records, so this works for private databases nothing outside your VPC can reach.
For each instance:
- engine, version, instance class, cluster, multi-AZ, public or private
- status
- CPU for the last hour, as small bars
- connections, free storage, free memory
- read and write latency, read and write IOPS
Low free storage (under 10%) is highlighted. Click a database for detail:
- Queries using the most database time in the last hour, and what it waited on, from Performance Insights
- Errors and slow queries from the latest RDS log file
These come from CloudWatch, Performance Insights and the RDS log files, read with the same read-only key as the rest of your AWS connection.
Known limits
- The Queries tab needs
pg_stat_statements. On RDS, add it toshared_preload_librariesfirst. Without it the tab says how to turn it on. - Row counts are Postgres's own estimates.
- Tables and Queries show totals since the statistics were last reset, not since you connected.
- The page shows up to 500 tables and 200 queries.
- Live numbers are read when you open or refresh the page.
- One Postgres connection per organisation.
- RDS covers one AWS region, the one you connected.
- The per-query breakdown needs Performance Insights turned on for that instance. Without it the detail says so.
- If your AWS connection was set up before RDS support, it may lack the RDS permissions. The page tells you to update the Rocketgraph stack in CloudFormation.
- Postgres data is not part of the incident checks today. The assistant and MCP tools don't read it.