这是从属计算机中的recovery.conf文件:-
standby_mode = 'on'
primary_conninfo = 'host=master_machine_username hostaddr=master_machine_IP port=19095 dbname=db_name user=replicationusername password=replicationuserpassword'
trigger_file = '/tmp/postgresql.trigger.19095'
主数据库和从数据库都具有具有REPLICATION角色的用户。 错误消息:-
FATAL:无法连接到主服务器:FATAL:角色 “用户名”不存在