我们正在测试Postgres故障转移。小学毕业后,我会触摸' trigger_file按指示。奴隶现在成为主要的。在before_slave(现在是primary)中的测试插入语句返回时出现以下错误。谁知道我需要禁用或关闭哪些其他参数?
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 :(得分:0)
您的服务器处于同步提交状态,这意味着正在等待来自从服务器的响应并且无法获取它,取消激活synchronous_commit
或配置从服务器进行响应,建议将故障转移和切换是repmgr