~/talk

pg_stat_statements or How to Know Where It Hurts

TalkinFrenchat PG Day France 2021 · 2021-06-16..06-17· [databases]
links:none on file
slides:none on file

pg_stat_statements is a PostgreSQL extension that records and aggregates SQL query usage across the whole cluster in a shared in-memory hash (default up to 5000 entries), requiring adding the library to shared_preload_libraries and a server restart, and optionally enabling save/load to survive restarts. It normalizes queries into canonical forms and accumulates counts, total runtime, rows and I/O cumulatively (so you need periodic sampling or a tool like pgwatch for history); recent changes split planning vs runtime in v13 and added top_level and eviction statistics in v14, where eviction drops roughly the lowest ~5% by total time.

AI-written summary · about

  1. 0:00Introduction
  2. 3:13SQL performance
  3. 5:17pg_stat_statements
  4. 8:50Key columns
  5. 13:29Updates and features
  6. 17:46Install and config
  7. 23:25Data interpretation
  8. 26:32Stats management
  9. 28:39Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.