DBA Checkup
v0.2.0Read-only PostgreSQL and Oracle health checks for AI assistants: fixed DBA checks, no free-form SQL.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
health_report Database health report
Runs every PostgreSQL check and lists what needs attention, most serious first. Start here.
overview Server overview
Version, uptime, connection use against max_connections, cache hit ratio, database sizes, and whether this login is safe (not a superuser).
active_sessions Active sessions and long-running work
Sessions doing work right now, longest first, with what they are waiting on. Flags long-running statements and sessions idle inside an open transaction (they hold locks and block vacuum).
blocking_locks Blocking locks
Who is blocking whom right now: each waiting session, the session blocking it, and how long it has waited. Names the root blockers.
top_queries Top statements by total time
The statements using the most database time since statistics were last reset (needs the pg_stat_statements extension).
storage Storage: biggest tables
The largest tables and materialized views, including their indexes and TOAST data.
index_health Index health
Invalid indexes, indexes never used since statistics were reset, and large tables read mostly by full scans (a likely missing index).
maintenance Vacuum, analyze and transaction ID age
Whether autovacuum is on, tables with many dead rows, when each was last vacuumed and analyzed, and how close each database is to transaction ID wraparound.
replication_backup WAL archiving and replication
Whether WAL archiving is on and failing, replica lag, and replication slots that hold back WAL (a common cause of full disks).