postgresql_16:4.13 Monitoring Database Activity
PostgreSQL 16 > Server Administration > Monitoring Database Activity
A database administrator frequently wonders, “What is the system doing right now?” This chapter discusses how to find that out.
Several tools are available for monitoring database activity and analyzing performance. Most of this chapter is devoted to describing PostgreSQL's cumulative statistics system, but one should not neglect regular Unix monitoring programs such as ps, top, iostat, and vmstat. Also, once one has identified a poorly-performing query, further investigation might be needed using PostgreSQL's EXPLAIN (see postgresql_16:7.1.146) command. (see postgresql_16:3.11.1) discusses EXPLAIN and other methods for understanding the behavior of an individual query.
Subsections
- postgresql_16:4.13.1 Standard Unix Tools
- postgresql_16:4.13.2 The Cumulative Statistics System
- postgresql_16:4.13.3 Viewing Locks
- postgresql_16:4.13.4 Progress Reporting
- postgresql_16:4.13.5 Dynamic Tracing