Logical replication has been in PostgreSQL itself for a while now.
There are naturally caveats: sequences don't get replicated, so you need to configure each replica with a non-overlapping range for each sequence. And DDL statements are also not replicated, so you have to migrate database schemas by hand on each replica.
Re:PostgreSQL is the worlds’ best database
by jeremyjh on Friday April 03, 2020 @10:23AM
(#22769397)
Logical changeset extraction itself does not in itself provide a replication feature from what I can see of the wiki [1]. 2ndQuadrant sells BDR which is built on top of it.
[1] https://wiki.postgresql.org/wiki/Replication,_Clustering,_an...
Re:PostgreSQL is the worlds’ best database
by anarazel on Friday April 03, 2020 @01:36PM
(#22771959)
> Logical changeset extraction itself does not in itself provide a replication feature
It is however a building block for logical replication, and used by https://www.postgresql.org/docs/current/logical-replication....
> from what I can see of the wiki [1
I really wish we'd just shut off the wiki. There's random pages starting to be maintained by someone that then stops at some point. Leads to completely outdated content, as in this case.
It's not that you can't create a master-master setup using Postgresql, I believe 2ndquadrant have and add-on that allows this. It just feels like it's messing with the fundamentals of the database on such a low level that I really only trust it, if it's part of Postgresql it self.