~/talk

Journey of developing a Performance Optimization Feature in PostgreSQL

Talkat PGConf India 2026 · 2026-03-11..03-13· [databases]
linkedin:rahila-syed
slides:none on file

Describes implementing a PostgreSQL change that lets the WAL sender transmit unflushed WAL pages to standbys by adding a flush pointer added to the replication protocol, measured with perf and flame graphs and pgbench. Benchmarks (custom scripts, 40 KB vs 8 MB transaction tests) raise TPS from ~125 to 133 and reduce WAL read I/O; perf shows send cost rising from ~18.5% to ~43.5% in extreme cases. Work is WIP because standby-side changes (WAL buffers, spill files, or pause signaling) are needed to avoid extra disk writes.

AI-written summary · about

  1. 0:00Introduction and talk overview
  2. 2:16Physical replication basics
  3. 9:13WAL buffers and fsync explained
  4. 12:03Identifying replication bottlenecks
  5. 18:33Profiling with perf and flame graphs
  6. 23:05Optimizing WAL sender with unflushed data
  7. 26:42Benchmarking the optimization
  8. 30:54WAL receiver challenges and solutions
  9. 39:16Summary and future work
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.