~/talk

Shaving off bytes at any scale: Space savings in various subsystems of PostgreSQL

Talkat PGConf.dev 2024 · 2024-05-28..05-31· [databases, web-performance]
links:none on file
slides:none on file

Catalog storage switches from verbose text nodes to a binary node format that tests show cuts on-disk catalog size and speeds reads/writes (and still permits a JSON writer), an empty database starts around 7 MB so savings multiply at scale; changing pg_attribute to reuse pg_type and make names variable saves about 4 bytes per column plus many flag bytes; setting a more aggressive toast_tuple_target trims ~10% on pg_rewrite; splitting visibility into a separate fork can remove ~18 bytes plus info bits from the 24‑byte tuple header, increasing tuples per page.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Catalog space savings
  3. 9:39Table storage optimizations
  4. 19:36WAL record overhead
  5. 26:27TOAST compression and updates
  6. 33:19Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.