Logical Replication
Logical Replication allows us to stream logical data changes between two nodes. By logical, we mean streaming changes without referring to specific physical attributes such as block number and row ID.
The main benefits of Logical Replication are as follows:
- Performance is roughly two times better than that of the best trigger-based mechanisms
- Selective replication is supported, so we don't need to replicate the entire database
- Replication can occur between different major releases (PostgreSQL 9.4 onwards), which can allow a zero-downtime upgrade
PostgreSQL 9.4 provides a feature called Logical Decoding. This allows you to stream a set of changes out of a master server. This allows a master to become a sending node in Logical Replication. ...
Get PostgreSQL 9 Administration Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.