High-Availibility for Postgres, based on Pacemaker and Corosync. PostgreSQL Automatic Failover Intro Thanks to Pacemaker and Corosync, PostgreSQL Automatic Failover (aka. PAF) is able to: detect a failure of your PostgreSQL instance recover your primary instance… … or failover to another node Select the best available standby on failover (with the smallest lag) switchover roles in your cluster bet