~/talk

PostgreSQL WAL and Commit Synchronization, Optimization Opportunities

Talkat Percona Live Online 2020 · 2020-10-20..10-21· [databases]
links:none on file
slides:none on file

Explains what each WAL record actually does, how WAL moves from shared 16 MB WAL buffer to OS and disk, and which OS IO behavior matters; shows small code snippets and demos and claims upping buffer to 64–128 MB doubles throughput on extreme concurrency; gives concrete tuning knobs at instance/database/user/session/transaction scope, explains remote write/flush/apply semantics, measures a ~TPS collapse with ~200 ms remote latency and notes that shipping WAL to a standby does not hide a slow local disk.

AI-written summary · about

  1. 0:00Intro
  2. 1:54What is WAL?
  3. 3:34Why WAL?
  4. 6:27WAL Record Generation
  5. 8:40Transaction processing by session
  6. 10:06WAL Writing
  7. 11:22WAL Archives
  8. 12:22Wait Events Associated with WAL Gen/Writing
  9. 13:27Flushing
  10. 14:03Synchronization to Local Disk
  11. 15:30Synchronization with Standbys
  12. 17:20History and Features
  13. 18:33Synchronization with "Remote Write"
  14. 19:46Remote Flush/"on" With Synch Standby
  15. 20:13Remote Apply
  16. 21:01IO Recommendations
  17. 21:43WAL Compression
  18. 23:23WAL Propagation
  19. 24:09How Fast/Slow?
  20. 27:35Thank You! Q&A
  21. 28:10Selecting Synchronization at Different Scopes
~/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.