What's Missing For Postgres Monitoring
summary
Shows that buffer hit counters mislead, planning can dominate latency (example: 45 ms planning vs 0.4 ms execution), and WAL bytes/full-page-image counters land in Postgres 13 and in pg_stat_statements so you can count WAL per statement. Demonstrates using perf to get kernel/user call graphs (uid/timestamp conversions hot during COPY). Notes that plan-aggregation extensions (pgstatt_plans, pg_store_plans, pg_stat_sql_plans) exist but are unmaintained and unavailable on most cloud DBaaS, leaving gaps for aggregate plan visibility and historical lock and hba-match counters.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:09What's Missing For Postgres Monitoring
- 8:54pg_stat_statements: Planning Time
- 19:52Finding queries based on application requests/customers pg_stat_statements has no way of differentiating queries beyond the queried
- 22:49Built-in Wait Event Aggregation
- 24:35EXPLAIN improvements for parallel workers
- 24:50Aggregate information about Effectiveness of Parallel Query
- 25:42CONTEXT for failure of parameterized queries
