for automatic failover:
1: enable repmgrd. A systemd unit file is added, but not yet enabled. See commit 24b66588931b75c136ef7d0e3d47b1abd9e5126c for that.
2: Add repmgr_funcs to shared_preload_libraries. See commit 2854637aa76921c579bdf94e62603007115acafa
3: Set following in repmgr.conf (also see comments of 2854637aa76921c579bdf94e62603007115acafa):
failover=automatic
promote_command='/usr/local/bin/repmgr standby promote -f /etc/repmgr-data.conf --log-to-file'
follow_command='/usr/local/bin/repmgr standby follow -f /etc/repmgr-data.conf --log-to-file'
for automatic failover: 1: enable repmgrd. A systemd unit file is added, but not yet enabled. See commit 24b66588931b75c136ef7d0e3d47b1abd9e5126c for that. 2: Add repmgr_funcs to shared_preload_libraries. See commit 2854637aa76921c579bdf94e62603007115acafa 3: Set following in repmgr.conf (also see comments of 2854637aa76921c579bdf94e62603007115acafa): failover=automatic promote_command='/usr/local/bin/repmgr standby promote -f /etc/repmgr-data.conf --log-to-file' follow_command='/usr/local/bin/repmgr standby follow -f /etc/repmgr-data.conf --log-to-file'