February 2020
Intermediate to advanced
734 pages
38h 13m
English
Believe it or not, logical replication (and therefore BDR) is fully compatible with synchronous mode. If we wanted to enable this, we would need to bootstrap the entire cluster first. Afterward, we could define these two parameters in postgresql.conf:
synchronous_commit = 'remote_write' synchronous_standby_names = 'ANY 1 (sync_slot_1, sync_slot_2)'
In this case, sync_slot_1 or sync_slot_2 would be the name of the synchronization slot used by the downstream system. BDR has a particular naming scheme, so it would be something like bdr_db_cluster_origin_target, but it does work as expected. Any COMMIT will be held until the synchronous requirements are met, just as if we were using synchronous physical replication.
This way, ...
Read now
Unlock full access