~/talk

The End of ANALYZE Hell: PostgreSQL 18's Statistics Preservation Story

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

PostgreSQL 18 preserves optimizer statistics across major upgrades so you skip the long post-upgrade ANALYZE step: pg_upgrade calls built-in functions pg_restore_relation_stats and pg_restore_attribute_stats (and relies on pg_stats_export via pg_dump/restore) to reinsert table and column stats into catalogs; a complex query that falls from ~0.041 ms to 0.5 minutes without stats returns to ~0.44 ms with preservation; extended stats remain excluded but are handled by vacuumdb --missing-stats-only in milliseconds; tested up to 500 GB with no significant extra upgrade time.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:33Old PG upgrade behavior
  3. 9:01Vacuum vs analyze explained
  4. 12:39PostgreSQL 18's new feature
  5. 17:30Statistics preservation details
  6. 22:27Performance comparison demo
  7. 24:16Missing stats only flag
  8. 25:17Conclusion and benefits
~/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.