Skip to content

Capabilities

Choose among 17 canonical commands by question and scope.

Start with the question and scope. check is a bounded nine-domain patrol, not a full table-by-table audit.

Entry points

CommandQuestion / drill-down
statusFirst look: identity, role, connections and coverage
checkBounded nine-domain patrol; check --html ./patrol.html

Runtime & concurrency

CommandQuestion / drill-down
sessionsession <pid>; session waits
locklock <pid>; lock --tree; lock --table <table>
txnTransaction horizons and 2PC (--xact-warn, --prepared-warn)
progressRunning VACUUM, CREATE INDEX, CLUSTER, and CHECKPOINT phases

Workload

CommandQuestion / drill-down
sqlsql top; sql show --id=<int64>; cumulative statistics

Storage & objects

CommandQuestion / drill-down
spaceLocal filesystems, WAL volume, databases and tablespaces
objectobject summary; object table/index/seq [name]
vacuumCurrent-database dead tuples and autovacuum; --schema
freezeInstance database ages and current-database table ages

Persistence & writes

CommandQuestion / drill-down
walWAL position, volume and retention; wal archive
checkpointCheckpoint, bgwriter and backend write counters

Replication & server

CommandQuestion / drill-down
replLocal kernel streaming replication, sync state and lag
slotsPhysical/logical replication slots, retained WAL and xmin
clusterExternal repmgr topology; defaults to database esrep
serverServer summary; server params; server license

Scope and interpretation

session, lock, txn, progress, repl, slots and server describe the connected instance. Lock object names resolve only for the connected database or shared objects. object and vacuum describe the current database. freeze combines instance database ages with current-database tables. space includes local-only filesystem facts (Unix socket only). cluster queries the repmgr metadata database (esrep by default).

sql ranks cumulative sys_stat_statements statistics per (dbid, userid, queryid); it is not a slow-query log.