~/talk

Query Logging and Workload Analysis

Talkat Postgres Open 2012 · 2012-09-17..09-19· [databases]
links:none on file
slides:none on file

Argues that collecting slow queries is not enough and that PostgreSQL 9.2’s pg_stat_statements and related tooling make real workload analysis practical: switch to syslog/CIS log, try PG Badger or pgFouine for parsing, and capture normalized statements so trends and counts are meaningful. Shows a painful real example where lowering log_min_duration_statement from 2s to 500ms explodes I/O and logging overhead, needs big RAM to process logs (example requiring ~64GB), and demonstrates a pg_stat_plans prototype that fingerprints plans, supports realtime five‑minute snapshots, and runs with single‑digit percent overhead. pgFouine PG Badger pg_stat_plans

AI-written summary · about

  1. 0:00The state of query logging
  2. 3:38Limitations of current tools
  3. 5:31Operational challenges
  4. 10:20The need for real-time data
  5. 14:34PG stat statements explained
  6. 21:06Query fingerprinting
  7. 27:37Visualizing workload data
  8. 33:23Evolution of database tools
  9. 38:45PG stat plans and regression
  10. 50:01Conclusion and future outlook
~/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.