Skip to content

Ready SQL for DBAs.

The questions a DBA asks a database they were just handed. Every query below is the one the console installs in a click: indexes nobody uses, transactions stuck open, the statements that cost the most. Copy the SQL, or connect the database and run it with a button.

PostgreSQL health

PostgreSQL

Dead tuples, unused indexes, open transactions, lock waits, cache hit and the statements that cost the most.