]> begriffs open source - ai-pg/blob - full-docs/txt/monitoring.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / monitoring.txt
1
2 Chapter 27. Monitoring Database Activity
3
4    Table of Contents
5
6    27.1. Standard Unix Tools
7    27.2. The Cumulative Statistics System
8
9         27.2.1. Statistics Collection Configuration
10         27.2.2. Viewing Statistics
11         27.2.3. pg_stat_activity
12         27.2.4. pg_stat_replication
13         27.2.5. pg_stat_replication_slots
14         27.2.6. pg_stat_wal_receiver
15         27.2.7. pg_stat_recovery_prefetch
16         27.2.8. pg_stat_subscription
17         27.2.9. pg_stat_subscription_stats
18         27.2.10. pg_stat_ssl
19         27.2.11. pg_stat_gssapi
20         27.2.12. pg_stat_archiver
21         27.2.13. pg_stat_io
22         27.2.14. pg_stat_bgwriter
23         27.2.15. pg_stat_checkpointer
24         27.2.16. pg_stat_wal
25         27.2.17. pg_stat_database
26         27.2.18. pg_stat_database_conflicts
27         27.2.19. pg_stat_all_tables
28         27.2.20. pg_stat_all_indexes
29         27.2.21. pg_statio_all_tables
30         27.2.22. pg_statio_all_indexes
31         27.2.23. pg_statio_all_sequences
32         27.2.24. pg_stat_user_functions
33         27.2.25. pg_stat_slru
34         27.2.26. Statistics Functions
35
36    27.3. Viewing Locks
37    27.4. Progress Reporting
38
39         27.4.1. ANALYZE Progress Reporting
40         27.4.2. CLUSTER Progress Reporting
41         27.4.3. COPY Progress Reporting
42         27.4.4. CREATE INDEX Progress Reporting
43         27.4.5. VACUUM Progress Reporting
44         27.4.6. Base Backup Progress Reporting
45
46    27.5. Dynamic Tracing
47
48         27.5.1. Compiling for Dynamic Tracing
49         27.5.2. Built-in Probes
50         27.5.3. Using Probes
51         27.5.4. Defining New Probes
52
53    27.6. Monitoring Disk Usage
54
55         27.6.1. Determining Disk Usage
56         27.6.2. Disk Full Failure
57
58    A database administrator frequently wonders, “What is the system doing
59    right now?” This chapter discusses how to find that out.
60
61    Several tools are available for monitoring database activity and
62    analyzing performance. Most of this chapter is devoted to describing
63    PostgreSQL's cumulative statistics system, but one should not neglect
64    regular Unix monitoring programs such as ps, top, iostat, and vmstat.
65    Also, once one has identified a poorly-performing query, further
66    investigation might be needed using PostgreSQL's EXPLAIN command.
67    Section 14.1 discusses EXPLAIN and other methods for understanding the
68    behavior of an individual query.