~/talk

From Disk to Data: Exploring PostgreSQL's Buffer Management

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

Explains how PostgreSQL moves pages from disk to memory and back by detailing the three-layer layout: buffer table (hash table) mapping buffer tags to IDs, per-page buffer descriptor with ref and usage counts and the buffer pool of 8KB slots. Describes states (pinned/unpinned/empty/dirty), eviction via a clock-sweep algorithm, and durability helpers: background writer and checkpointer. Covers mitigations for large sequential scans using a ring buffer and a separate local buffer for temp data.

AI-written summary · about

  1. 0:00Introduction to buffer management
  2. 2:11Buffer manager structure overview
  3. 5:05Buffer table and descriptor layers
  4. 8:02Cache hit and miss workflow
  5. 9:27Concurrency and locking in buffer
  6. 10:10Clock sweep and page eviction
  7. 12:40Background processes for buffer
  8. 13:43Optimizing buffer usage
  9. 14:25Summary and key takeaways
~/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.