bucardo

How to handle sequences in Bucardo Postgresql multi master

别等时光非礼了梦想. 提交于 2020-07-09 04:12:44
问题 We are setting up a database on three different Postgresql servers (and maybe on more in the future), currently syncing all tables using bucardo multi-master groups. We are not syncing sequences; we tried that, and we noticed bucardo is making us lose data when simultaneous writes occur in the same table, on different servers. Since they use the same keys, on sync time bucardo chooses to drop one of the duplicate rows. Our current approach is to manually namespace the sequence on each

How to handle sequences in Bucardo Postgresql multi master

て烟熏妆下的殇ゞ 提交于 2020-07-09 04:11:31
问题 We are setting up a database on three different Postgresql servers (and maybe on more in the future), currently syncing all tables using bucardo multi-master groups. We are not syncing sequences; we tried that, and we noticed bucardo is making us lose data when simultaneous writes occur in the same table, on different servers. Since they use the same keys, on sync time bucardo chooses to drop one of the duplicate rows. Our current approach is to manually namespace the sequence on each