~/talk

Journey of developing a performance optimization feature in PGSQL

Talkat POSETTE: An Event for Postgres 2026 · 2026-06-16..06-18· [databases]
linkedin:rahila-syed
slides:none on file

A concrete feature is implemented that lets the WAL sender transmit unflushed WAL ahead of disk flushes, with the protocol carrying a flush pointer so the standby buffers records until the primary actually flushes. Iterative profiling uses perf+FlameGraph and pgbench custom workload (16–32 clients) to measure effects: WAL read I/O falls and TPS moves from 125 to 133 (~5% uplift) in high-latency tests. WAL receiver buffering and spill/flow-control remain to be profiled and hardened.

AI-written summary · about

  1. 0:00Music & introduction
  2. 0:48Physical replication basics
  3. 3:54WAL flow from primary to standby
  4. 5:26WAL buffers, fsync, and tuning
  5. 8:41WAL sender loop and behavior
  6. 15:51Perf profiling and flamegraph insights
  7. 22:01Sending unflushed WAL
  8. 26:03Benchmark results & performance gains
  9. 28:26WAL receiver changes & alternative implementations
  10. 32:36Conclusion
~/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.