
Pgstat is a client utility to gather statistical information from a PostgreSQL instance in real time, and acts like vmstat or sar.
Supported statistics include archiver, bgwriter, connections, databases, tables, tables I/O, indexes, functions, archives wals, temporary files, and pgBouncer.