How to Automate PostgreSQL 12 Replication and Failover with Repmgr – Part 1
2ndquadrant.com