PostgreSQL Replication

The cluster focuses on discussions about PostgreSQL's replication features, including synchronous replication, WAL shipping, logical replication, master-master setups, and tools like Bucardo, BDR, and repmgr, often comparing them to MySQL or questioning their suitability for high availability and scaling.

πŸ“‰ Falling 0.5x Databases
3,454
Comments
20
Years Active
5
Top Authors
#3827
Topic ID

Activity Over Time

2007
3
2008
15
2009
71
2010
101
2011
123
2012
162
2013
158
2014
178
2015
163
2016
251
2017
330
2018
189
2019
138
2020
180
2021
276
2022
281
2023
306
2024
246
2025
255
2026
28

Keywords

postgresql.org litestream.io HA DBA CAP S3 SQL fly.io OK solutions.html replication master postgres slave replica wal mysql synchronous data secondary

Sample Comments

qaq β€’ Feb 21, 2024 β€’ View on HN

Well Postgres has sync replication if you value consistency

pbreit β€’ Jul 21, 2023 β€’ View on HN

Don't Maria, Postgres, etc make replication pretty easy?

erkkie β€’ Sep 3, 2014 β€’ View on HN

Nicer replication story? Try recent postgres with wal shipping + wal streaming;)

malisper β€’ Jan 13, 2021 β€’ View on HN

The post touches upon it, but I didn't really understand the point. Why doesn't synchronous replication in Postgres work for this use case? With synchronous replication you have a primary and secondary. Your queries go to the primary and the secondary is guaranteed to be at least as up to date as the primary. That way if the primary goes down, you can query the secondary instead and not lose any data.

joevandyk β€’ Oct 3, 2011 β€’ View on HN

They say they use master-master replication with mysql so they have no single points of failures. Back then, I think the only option with postgres was to use slony.

paulryanrogers β€’ Feb 28, 2016 β€’ View on HN

Pgpool replication can work that way too

rpedela β€’ Aug 31, 2014 β€’ View on HN

Why isn't the built-in master/slave replication plus WAL archiving to something like S3 sufficient?

sushidev β€’ Jan 3, 2025 β€’ View on HN

Seems very useful. This stuff can’t be done already with pg replication?

ddorian43 β€’ Oct 22, 2023 β€’ View on HN

Try it with synchronous replication (I want that for my main db) and report back.

anonzzzies β€’ Nov 2, 2023 β€’ View on HN

How is the replication / master-master / scale-out for this database? We really would love a solution like this but it would need to scale for our use case.