Setting Up REPMGR With WITNESS For PostgreSQL 10

Create: Wed, 09/16/2020 - 06:25
Author: nurhidayat

This blog post will go over how to set up and implement repmgr which is the PostgreSQL application to manage replication between primary and replica nodes, allowing for quick and easy failover and rebuilding of replicas. For reference, all commands are run as root. For the commands that need to be run as the Postgres user, I will run them using su. As an example: