A top-like command-line tool for real-time monitoring of PostgreSQL server activity.
pg_activity is a terminal-based, top-like monitoring tool for PostgreSQL databases. It provides a dynamic, real-time interface to visualize active processes, resource usage (CPU, memory, I/O), and query performance, enabling quick diagnosis of performance bottlenecks and blocking issues.
PostgreSQL database administrators and developers who need real-time, command-line visibility into database activity and performance metrics.
It offers a lightweight, interactive alternative to graphical monitoring tools with deep PostgreSQL-specific insights, direct process management capabilities (cancel/terminate), and customizable displays—all from the terminal.
pg_activity is a top like application for PostgreSQL server activity monitoring.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers dynamic updates with configurable refresh intervals (0.5-5 seconds) and extensive keyboard shortcuts for sorting, filtering, and pausing, as detailed in the interactive commands table.
Displays query duration, client information, database size, temporary file usage, and replication status by leveraging PostgreSQL-specific views like pg_stat_activity and pg_locks.
Allows canceling or terminating backends directly from the interface using shortcuts like 'C' and 'K', with support for tagging multiple processes, enhancing troubleshooting efficiency.
Supports configurable columns, color schemes, and built-in profiles (narrow, wide, minimal) through INI-format configuration files, enabling tailored views for different use cases.
Requires super-user database access for full functionality; otherwise, it falls back to a degraded mode with missing system information, which can be a security and operational hurdle.
Queries may be missed between scan intervals (up to 5 seconds) and truncated due to PostgreSQL's track_activity_query_size parameter, leading to incomplete monitoring data.
Exclusively designed for PostgreSQL, with no support for other database systems, reducing its utility in mixed-database environments.