O'Reilly logo

PostgreSQL 9 Administration Cookbook - Second Edition by Simon Riggs, Gianni Ciolli, Hannu Krosing, Gabriele Bartolini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required