Provides database health diagnostics via slow query analysis, bottleneck identification, and Postgres inspection.
100
100%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Provides database health diagnostics via slow query analysis, bottleneck identification, and Postgres inspection.
This tile enables agents to inspect Supabase Postgres health using system catalog views. It targets pg_stat_statements for query performance, pg_stat_user_tables for table-level I/O patterns, and pg_stat_user_indexes for index utilization. All queries run through the MCP execute_sql interface. The inspection is strictly read-only.
| Catalog View | Purpose |
|---|---|
pg_stat_statements | Query execution times, call counts, row counts |
pg_stat_user_tables | Sequential vs index scans, dead tuples, vacuum status |
pg_stat_user_indexes | Index scan frequency, tuple reads/fetches |
pg_stat_activity | Active connections, idle sessions, query states |
pg_locks | Lock contention and blocked queries |
mean_exec_time > 100msseq_scan > 1000 AND idx_scan = 0n_dead_tup > 10000max_connections