~/talk

Durability in Postgres

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
slides:none on file

Explains how Postgres actually achieves durability (WAL in 16MB segments, checkpoints that fsync dirty shared_buffers) and what to tune: checkpoint_timeout (default 5m), checkpoint_completion_target (default 0.55), max_wal_size (pre‑9.5 defaults ~48MB, newer defaults ~1GB), and wal_compression (since 9.5) to cut WAL volume. Shows tradeoffs: full_page_writes can be ~98% of WAL after frequent checkpoints, unlogged tables skip WAL, async commits give a ~4,000→~180,000 tx/s order‑of‑magnitude boost on local SSDs with a ~3s durability window, and synchronous_standby_names/remote_apply control cross‑node guarantees.

AI-written summary · about

  1. 0:00Intro
  2. 0:28Durability Definition
  3. 1:56ValLogging
  4. 8:05Checkpoint Parameters
  5. 11:25Checkpoint Spreading
  6. 17:19Right Ahead
  7. 23:03Synchronous Commit
  8. 33:05No unlocked tables
  9. 35:54High availability
  10. 43:18Synchronous replication
  11. 46:53Twophase commit
  12. 50:50Checkpoint
~/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.