~/talk

Resizing shared buffer pool in a running PostgreSQL server: important, yet impossible

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

Demonstrates a Linux-first patch that resizes PostgreSQL shared_buffers without restart by reserving large mmap address space, using madvise to add or remove backing pages, and coordinating backends with a proxy signal barrier so a coordinator evicts or aborts on pinned pages. Expansion populates new pages; shrinking flushes and removes evicted pages. Users change config, run pg_reload_conf and call pg_resize_shared_buffers, which returns true on success. Windows support is not included yet.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:23Shared memory architecture in PostgreSQL
  3. 10:00Shared buffer pool structures
  4. 13:17Challenges of resizing buffers
  5. 16:50Approaches to resizable shared memory
  6. 22:09Resizing protocol and synchronization
  7. 27:29Proxy signal barrier mechanism
  8. 31:00User perspective and fallback
  9. 33:28Windows and multi-threading considerations
~/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.