~/talk

Ways to reduce the memory footprint of connections

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
links:none on file
slides:none on file

Postgres session memory concentrates in the relation cache (over 50% of an idle backend’s context), and the proposal quantifies fixes: aliasing subtype-only fields to reclaim about 128 bytes per index-shaped struct, deduplicating tuple descriptors and index metadata to cut roughly 10% memory on an empty cluster, making index-am routine pointers static (landed for Postgres 19), and using a proxy to malloc or alternative memory-context strategies to avoid aset overallocation.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49What is the relcache
  3. 3:37Optimizing relcache fields
  4. 6:07Duplicating relcache structures
  5. 9:20Caching index op class data
  6. 11:36Tuple descriptor duplication
  7. 13:45Splitting tuple descriptors
  8. 17:15Memory context selection
  9. 23:44Summary and Q&A
~/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.