For the last few days I've been trying to implement a working multi-master replication using postgresql however, unsuccessfull. I came across multiple tools, none of which as worked.
I think I'm getting close to a solution but I'm hitting a wall.
Right now I'm using pg_logical. It seems that pg_logical alone doesn't allow multi-master but only master-slave. I saw people using the plugin "BDR", but I can't find any way of installing it and from what I read it is no longer maintained and has moved onto a paid on-cloud solution (which I cannot use in my scenario)
If anyone has a solution to replicate, multi-master, multi-servers (without access to the internet, only during installation)
I've also tried bucardo, but, once again, unsuccessful.
Thank you all
You could try logical replication row filtering to replicate table data bidirectionally.
https://www.postgresql.org/docs/15/logical-replication-row-filter.html
Give each node a unique id and create a publication that's limited to its unique id.
That would be ideal for read only tables where you only INSERT, i.e., audit logs. But would have limited uses for other operations.
To verify