~/talk

On compression of everything in Postgres

Talkat Citus Con: An Event for Postgres 2023 · 2023-04-18..04-19· [databases]
links:none on file
slides:none on file

Postgres now ships multiple codecs—PGLZ, zlib, LZ4, zstd—and shows concrete wins: LZ4 decompression ~5 GB/core vs simple copy ~14 GB/core, making TOAST reads 5–10× faster vs PGLZ on average; compressing full-page images (FPI) with LZ4/zstd yields about ≈10% speedup in pgbench. WAL compression promises big I/O and network savings but hits hard limits: tiny ~<100‑byte records, repeated re-compression by senders/receivers, and much more complex crash recovery. Temporary-file and random‑access compressed‑file prototypes cut written bytes (one patch shows ~4×), but fragmentation and durability make them hard to land.

AI-written summary · about

  1. 0:00Introducing Andrey
  2. 2:00Andrey’s talk begins
  3. 2:58Basics of compression
  4. 5:42Pareto frontier
  5. 7:06pglz
  6. 8:00zlib
  7. 8:40Lz4
  8. 9:34Zstd
  9. 10:26Compression dictionaries
  10. 15:30WAL compression idea
  11. 20:51Protocol compression futures
  12. 23:15Temporary files compression (future, maybe)
  13. 27:57Q&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.