~/talk

PostgreSQL Query Performance Insights

Talkat Percona Live 2022 · 2022-05-16..05-18· [databases]
slides:none on file

Compares concrete tools and outcomes: uses pg_stat_activity for live connections, pg_stat_statements for accumulated stats, auto_explain and pgBadger for logged plans, and Percona’s pg_stat_monitor (v1.0) for time-bucketed history. Shows a real bug where JDBC typecasting causes a sequential scan that runs 3.5 hours versus milliseconds with an index. Documents pg_stat_monitor’s default 10 one-minute buckets, preservation of actual parameter values and plans, per-query histograms, and availability for PostgreSQL 12+ so users can reproduce which tool actually finds the cause.

AI-written summary · about

  1. 0:00PostgreSQL query performance
  2. 2:51Query performance analysis
  3. 5:39Query processing stages
  4. 7:56EXPLAIN and EXPLAIN ANALYZE
  5. 10:53Cost parameters explained
  6. 13:41Complex query optimization
  7. 16:27Query plan structure
  8. 18:37PostgreSQL performance tools
  9. 20:25Connections with pg_stat_activity
  10. 25:25Query stats with pg_stat_statements
  11. 35:45auto_explain for query logging
  12. 39:17pgBadger log analysis
  13. 42:09pg_stat_monitor intro
  14. 49:24Summary and tool guide
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.