环境

postgres 12.5
repmgr 5.2.1

主:125.46.83.204
从:125.46.83.198

配置文件

repmgr

配置文件 /etc/repmgr
执行需要进行 su - postgres 用户

postgres

配置文件 /var/lib/pgsql/12/data

安装