~/talk

Myths and Truths about Synchronous Replication in PostgreSQL

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
slides:none on file

Explains WAL-based physical streaming vs log-shipping, exact effects of synchronous_commit (on, remote_write, remote_apply) and synchronous_standby_names (FIRST priority vs ANY quorum), shows commit is durable locally but visibility and lock release wait for confirmations so cancelled commits can become visible, recommends two‑phase commit or checking txid_status to detect this, warns zero‑RPO is not guaranteed, pg_rewind is still required, and benchmarks with docker-compose, iproute2 and pgbench show async ~5ms, quorum ~12ms, priority ~14ms and RTT=100ms pushes latency >100ms.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37Understanding Write-Ahead Log (WAL) and Replication Types
  3. 5:35Synchronous replication types
  4. 7:41Myth #1: Transaction Commit Order in Synchronous Replication
  5. 10:35Myth #2: Zero Data Loss Guarantees and RPO Claim
  6. 16:18Myth #3: Reading from synchronous standby nodes vs prim
  7. 19:34Myth #4: pg_rewind Requirements Even with Synchronous Setup
  8. 21:38Myth #5: Synchronous replication is slow
~/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.