The next generation of logical replication for PostgreSQL
pglogical is a logical replication system implemented entirely as a PostgreSQL extension. Fully integrated, it requires no triggers or external programs. This alternative to physical replication is a highly efficient method of replicating data using a publish/subscribe model for selective replication.
pglogical forms the foundation for BDR – which runs as an extension on top of it – providing the essential logical replication and other technologies for its features.
Connect PostgreSQL with other data sources and targets
The 3rd generation of pglogical separates out the receiver and writer processes, creating a pluggable architecture for non-PostgreSQL subscribers & providers. pglogical already supports Kafka and RabbitMQ, with many more in the pipeline.
Minimize downtime with physical failover
pglogical has the ability to failover to a physical standby, thereby ensuring that all standby databases in the cluster remain available as standbys to the new primary. A physical failover ensures that all data is present in the new primary, rather than a subset – as opposed to failing over to a logical standby, which does not guarantee the entire dataset.
Seamlessly replicate new and updated data structures
With Transparent DDL Replication, pglogical provides seamless replication for any updates to the data structure of the source database. The DDL replication is statement-based, i.e. it is the statement that is replicated, not the result.
Transparent partitioning support
Through seamless integration of partitioned tables, pglogical allows you to specify the root table and replicates all partitions. Different partitioning configurations can be defined on the subscriber, including replication of a non-partitioned table to a partitioned one, and vice versa. Partitioning support is elastic, allowing to add and remove partitions transparently.
Row and column filters
Taking advantage of logical replication, pglogical allows to filter rows and/or columns that need to be replicated to the standby database. Being selective during replication allows for reduced traffic, as well as data segregation as needed.
pglogical 2.3.1 released – April 21, 2020
pglogical is available for PostgreSQL 9.4 – 12. It is available via 2ndQuadrant’s apt and yum repositories for Debian and Red Hat family (RHEL, CentOS, and Fedora). You can use standard apt and yum package managers for installing pglogical with your instance of PostgreSQL.
Detailed installation instructions are available here.