~/talk

AWSM FSM! Free Space Maps Decoded

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

Postgres stores free-space as a persistent per-relation FSM fork introduced in 8.4, using a binary-tree of pages where one FSM leaf covers ~2k heap pages (~16 MB) and two levels scale to ~32 GB; entries use 256 categories (32-byte granularity) stored in one byte with internal nodes bubbling up the max, so lookups are O(log n) and durable across restarts. Vacuum populates the FSM (it’s created lazily), the FP next slot spreads concurrent inserts to avoid hotspots, and the contrib tool pg_freespacemap lets you inspect results.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 2:40What is an FSM
  3. 5:18MVCC refresher
  4. 8:57MVCC space issues
  5. 9:39FSM purpose and basics
  6. 13:17FSM and MVCC lifecycle
  7. 15:06FSM evolution in PostgreSQL
  8. 19:46FSM rewrite in PostgreSQL 8.4
  9. 22:19FSM forks and file structure
  10. 25:11FSM page layout and categories
  11. 27:16Binary tree structure in FSM
  12. 28:44Multi-level FSM trees
  13. 31:17FSM file creation demo
  14. 32:41Inspecting FSM contents
  15. 33:23FSM updates from vacuum
  16. 34:50Insert operations and FSM
  17. 36:40FSM as a hint structure
  18. 38:27FSM optimizations
  19. 39:56FP next slot concurrency
  20. 40:58FSM in other databases
  21. 41:40FSM extensions and parameters
  22. 42:43Future enhancements for FSM
~/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.