BDR User Guide
From PostgreSQL wiki
BDR stands for BiDrectional Replication. At the PgCon2012CanadaInCoreReplicationMeeting an inital version of the design was presented.
A presentation containing reasons leading to the current design and a prototype of it, including preliminary performance results, is available.
Contents |
Project Aims
- in core
- fast
- reusable individual parts (see below), usable by other projects (slony, ...)
- basis for easier sharding/write scalability
Independent Modules
XLogReader
Reads and filters the wal. For the purpose of BDR all purely physical and index changes can be filtered out.
Using the existing code in xlog.c was considered to be to complex because it very tightly integrates into its current usage.
Applycache
Reconstructs whole transactions from a stream of interspersed individual changes. Handles subtransactions and merges them into the main transaction if the were successful.
Command Triggers
Used to make DDL work accross nodes.
Embedded List
Small support module thats used to make low-overhead list manipulations without additional memory management/pointer indirection overhead easy.
