2016-12-07 201 views
0

我们正在测试Postgres故障转移。在主要关闭后,我按照指示触摸trigger_file。奴隶现在成为主要的。在former_slave(现在主要)中的测试插入语句返回,并出现以下错误。任何人都知道我需要禁用或关闭哪些其他参数?Postgres故障转移错误

formetest=# insert into tcompany values(50,'NOT ACME','ToonLand1'); 
^CCancel request sent 
WARNING: canceling wait for synchronous replication due to user request 
DETAIL: The transaction has already committed locally, but might not have been replicated to the standby. 
INSERT 0 1 

回答

0

你有你的服务器synchrounous提交,这意味着正在等待从机(S)的响应,并ins't得到它,取消激活的synchronous_commit或配置从属回应,一个扩展建议和故障转移转换是repmgr