Configure quorum-based synchronous replication in PostgreSQL with synchronous_standby_names ANY

domain: postgresql.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Confirm streaming replication is already set up and working with the standbys you want to include in the quorum
  2. Set synchronous_standby_names = 'ANY <num_sync> (<standby1>, <standby2>, <standby3>)' in postgresql.conf, e.g. ANY 2 (s1, s2, s3) to require any 2 of 3 standbys to acknowledge
  3. Leave synchronous_commit at its default of on (or set it explicitly) so commits actually wait for the quorum before returning
  4. Reload the configuration (pg_ctl reload or SIGHUP) for the change to take effect
  5. Verify active synchronous standbys via pg_stat_replication.sync_state, which should reflect quorum members rather than a single fixed sync standby

Known gotchas

Related routes

Set up cascading PostgreSQL streaming replication where a standby relays WAL to downstream standbys
postgresql.org · 5 steps · unrated
Set up PostgreSQL logical replication with publications and subscriptions
postgresql · 6 steps · unrated
Configure MySQL GTID-based replication and perform a failover
mysql · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans