
Pg_top is 'top' for PostgreSQL.
* Monitor PostgreSQL processes. * View currently running SQL statement of a process. * View query plan of a currently running SELECT statement. * View locks held by a process. * View I/O statistics per process. * View replication statistics for downstream nodes.