Getting ready

The latest version of pglogical at the time of writing this book is 1.2.1. Obtain a copy of the source code from the following URL:

https://github.com/2ndQuadrant/pglogical

 

The pglogical extension also requires several other libraries for the build to succeed. On Debian-based systems, install them using the following apt-get commands:

sudo apt-get install libselinux1-dev libxslt1-dev libpam0g-dev   
libedit-dev

For Red-Hat-based systems, install these RPMs with the following yum command:

sudo yum install libselinux-devel libxslt-devel pam-devel libedit-  
devel

Get PostgreSQL High Availability 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.