Lesson 4 of 14

Synchronous Replication and Quorum Commit

Applies to PostgreSQL 13–17 Last reviewed May 2026 Grounded in source

The one thing to understand first

By default PostgreSQL replication is asynchronous: a primary commits once its own WAL is durable, without waiting for any standby. If the primary then fails before a standby received the latest WAL, those last transactions are lost. Synchronous replication makes the primary wait for standby confirmation before reporting commit success, eliminating that data-loss window — at the cost of commit latency.

Synchronous replication trades latency for durability — but if you don’t provision enough standbys, it secretly also trades away availability: the same “wait for confirmation” that prevents data loss will hang every commit when there’s no one left to confirm.

Layer 3 — Watch it happen on your own database

One catalog tells you which standbys are actually counting toward your durability guarantee:

This is a Pro lesson

Get every Learning Pathway and cookbook recipe — grounded in PostgreSQL source code, with diagnostics, fixes, and prevention for each topic.

Continue this lesson to learn:

  • Layer 4 — The levers this hands you
  • Layer 5 — What an Oracle DBA should expect vs what they get
  • Key takeaway
  • How this article was written
  • All 36 Learning Pathway lessons
  • 170+ cookbook recipes
  • Source-grounded diagnostics & fixes

Secure checkout Cancel anytime Source-grounded

Was this helpful?

← Back to 04 — Advanced: Replication & HA Architecture