BDR (Bi-Directional Replication) v4


BDR is a PostgreSQL extension providing multi-master replication and data distribution with advanced conflict management, data-loss protection, and throughput up to 5X faster than native logical replication, and enables distributed PostgreSQL clusters with high availability up to five 9s.

Detailed overview about how BDR works is described in the Architectural Overview chapter.

Supported PostgreSQL database servers

BDR is compatible with PostgresSQL, EDB Postgres Extended and EDB Postgres Advanced flavors of PostgresSQL database servers and can be deployed as a standard PG extension. See Comptibility Matrix for details of supported version combinations.

It is important to note that some key BDR features depend on certain core capabilities being available within the targeted PostgresSQL database server. Therefore, it is essential for the BDR customers to also adopt the PostgresSQL database server flavor that is best suited to their business needs. For example, if having the BDR feature "Commit At Most Once (CAMO)" is mission critical to a BDR customer’s use case, they should not adopt the community PostgreSQL flavor for it does not have the core capability required to handle CAMO. The full feature matrix compatibility can be found in Choosing a Postgres distribution.

BDR offers close to native PostgreSQL compatibility. However, some access patterns don't necessarily work as well in multi-node setup as they do on single instance. There are also some limitations in what can be safely replicated in multi-node setting. The chapter Application Usage goes into detail on how BDR behaves from application development perspective.