Visibility Maps, HOT Updates, and Autovacuum Cost Limits

Published 2026-09-04 · Category: Storage Internals

In PostgreSQL, every UPDATE writes a new tuple version. When non-indexed columns change and sufficient space remains on the same 8 KiB heap page (via modest fillfactor), Heap-Only Tuple (HOT) chains avoid creating duplicate index entries.

SELECT relname, n_tup_upd, n_tup_hot_upd, n_dead_tup
FROM pg_stat_user_tables
ORDER BY n_dead_tup DESC;

Keeping per-table autovacuum_vacuum_scale_factor low on high-churn tables preserves all-visible bits in the visibility map and sustains true index-only scans.