repmgr is a suite of open-source tools to manage replication and failover
within a cluster of PostgreSQL servers.  It enhances PostgreSQL's built-in
replication capabilities with utilities to set up standby servers, monitor
replication, and perform administrative tasks such as failover or
switchover operations.

Homepage:
https://repmgr.org/
