Synchronous replication
Commits waiting for standby confirmation: synchronous_standby_names, priority and quorum (FIRST/ANY) sync standbys, remote_apply and sync rep wait handling. Introduced in PostgreSQL 9.1.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · minor · 1 commit · +29 / -18 lines
- PostgreSQL 18 · worked-on · improved · moderate
- PostgreSQL 17 · worked-on · improved · moderate
- PostgreSQL 16 · worked-on · improved · moderate
- PostgreSQL 15 · worked-on · improved · moderate
- PostgreSQL 14 · worked-on · improved · moderate
- PostgreSQL 13 · worked-on · improved · moderate
Threads
- Lost walsender wakeup stalls synchronous commits until the standby's next reply (16+)
- sync_standbys_defined and pg_stat_replication
- Small fixes needed by high-availability tools
- Reduce SyncRepLock contention on the commit path
- remote_apply commit hangs when wal_receiver_status_interval = 0
- [PATCH] Add cascade synchronous replication
- An attempt to avoid locally-committed-but-not-replicated-to-standby-transactions in synchronous replication
- Wake up backends immediately when sync standbys decrease
- Unnecessary delay in streaming replication due to replay lag
- synchronous_standby_names parser discards errors
- sync_standbys_defined read/write race on startup
- BUG #18663: synchronous_standby_names vs synchronous_commit vs pg_stat_replication
- Resetting synchronous_standby_names can wait for CHECKPOINT to finish
- SyncRepWaitForLSN waits for XLogFlush?
- Automatic notification of top transaction IDs
- Avoiding data loss with synchronous replication
- Synchronous commit behavior during network outage
- Disallow cancellation of waiting for synchronous replication
- Request for further clarification on synchronous_commit
- SyncRepLock acquired exclusively in default configuration
- BUG #16498: The master inserts data successfully when the standby stopped in synchronous stream replication
- SyncRepGetSyncStandbysPriority() vs. SIGHUP
- Race condition in SyncRepGetSyncStandbysPriority
- Questions about SyncRepWaitForLSN()
- Problem with synchronous replication
- Check the number of potential synchronous standbys
- Race conditions with TAP test for syncrep
- BUG #15791: WalSndCtl->sync_standbys_defined modified too late
- A WalSnd issue related to state WALSNDSTATE_STOPPING
- Commits don't block for synchronous replication
- Quorum commit for multiple synchronous replication.
- Combination with priority-based and quorum-based synchronous replications
- BUG #14721: Assertion of synchronous replication
- Assertion of synchronous replication