~/talk

Things your explain plan is not telling you

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases]
links:none on file
slides:none on file

Shows concrete gaps in PostgreSQL EXPLAIN: large JSONB values (10,000 rows with 32 KB each) are stored in a TOAST table so EXPLAIN can report 0.9 ms but real client-side work is 1.7 s; Postgres 17 adds explain serialized text to measure serialization. Repeated detoasting across 100 rule sets makes a 300 ms plan balloon to 2.5 s; forcing eager detoast or using subqueries cuts it to ~300 ms. Visibility and long open transactions make an index scan hit 95k pages; clustering and correct index column order can yield ~100x speedups.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:50What explain plans reveal
  3. 8:41TOAST performance pitfalls
  4. 21:26Visibility and long transactions
  5. 29:16Index-only scans and caching
  6. 33:12Index condition order impact
  7. 36:45Limitations and future improvements
  8. 37:20Q&A session
~/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.