Use Wait Sampling for deep performance analysis
masterIf the pg_wait_sampling extension is installed, pg_profile can provide granular wait event data. This allows you to see exactly what backends are waiting for (e.g., I/O, locks, or network).
- Wait Event Types: Summarizes time spent in different wait event categories for both statements and all backends.
- Top Wait Events (Statements): Shows the most frequent wait events encountered during SQL execution (using
_pg_profile.topn_filter). - Top Wait Events (All): Shows the most frequent wait events across the entire cluster, including background processes.