由于BDR问题,我无法更改表或创建视图。 当我运行表的创建时,它会卡住。 我查看了IDLE交易,但没有发现任何问题。
-- This is how I looked at idle transactions
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- kill running query
SELECT pg_cancel_backend(procpid);
如果我第二次运行脚本,则会收到以下错误:
ERROR: database is locked against ddl by another node
HINT: Node (6572402239480517332,1,16384) in the cluster is
already performing DDL
SQL state: 55P03