~/talk

PostgreSQL Query Tuning: A Foundation Every Database Developer Should Build

Talkat PGConf India 2026 · 2026-03-11..03-13· [databases]
links:none on file
slides:none on file

Shows how to find slow SQL with pg_stat_statements and capture plans automatically with auto_explain, then read EXPLAIN ANALYZE outputs in the context of real metadata: default stats target 300 (max 30,000 samples), vacuum visibility, partial indexes, and when partition pruning fails because functions are volatile. Demonstrates practical fixes — increase column statistics, add correlated statistics, avoid casting and CTE materialization, tune work_mem/hash settings and max_parallel_workers_per_gather — and ships an open source HTML inspector called pgtx_plan to combine plan plus object definitions.

AI-written summary · about

  1. 0:00Introduction to query tuning
  2. 3:59Finding problematic queries
  3. 8:14Analyzing query execution plans
  4. 14:32Understanding statistics and metadata
  5. 21:31DDL and schema design impact
  6. 25:45Query rewrite and planner empathy
  7. 31:02Parameter settings and timeouts
  8. 33:30Open-source tool for tuning
~/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.