~/talk

Best Practices for Tuning Slow Postgres Queries

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
slides:none on file

Practical walkthrough of diagnosing slow Postgres queries using real outputs and concrete fixes: how to benchmark with EXPLAIN (ANALYZE, BUFFERS), how misestimated row counts and conditional dependencies break planner costing, when to raise the statistics_target or use CREATE STATISTICS, why parameterized index scans change performance with join order, and when to force plans with pg_hint_plan or SET flags to isolate a misestimate. Watch if you want hands‑on tactics and commands to reproduce and fix slow plans.

AI-written summary · about

  1. 0:00Start
  2. 0:10Introduction - Best Practices for Tuning Slow Postgres Queries
  3. 0:52Debugging why a Query is Slow
  4. 2:37Benchmarking with EXPLAIN(ANALYZE, BUFFERS)
  5. 5:41Planner Costing & Why it Can Never be Perfect
  6. 11:32Join Order & Parameterized Index Scans
  7. 19:30Guiding the Planner to the Right Plan
  8. 22:27Conclusion
~/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.