postgresql叢集報錯解決:SELECT pg_catalog.pg_try_advisory_xact_lock_shared(65535, 65535)
阿新 • • 發佈:2018-12-27
10月25號之後只能對evap資料庫進行select操作,且執行報錯如下:
org.postgresql.util.PSQLException:
ERROR: pooler: failed to create connections in parallel mode for thread 140705041217280
在位置:SQL statement
"EXECUTE DIRECT ON (cn_5002) 'SELECT pg_catalog.pg_try_advisory_xact_lock_shared(65535, 65535)'"
查詢使用者線許可權:
查詢表許可權:
select * from INFORMATION_SCHEMA.role_table_grants where table_catalog='evap' and table_name='z_area_monitor_qygn12' and table_schema='public';
select * from INFORMATION_SCHEMA.role_table_grants where grantee='admin';
檢視鎖,無問題:
解決辦法:gsql登入時換用66.30,埠不變,操作恢復正常
參考文章:https://sourceforge.net/p/postgres-xc/mailman/message/32086357/
https://www.oschina.net/translate/postgresql-locking-revealed PostgreSQL 鎖解密
https://yq.aliyun.com/ask/184?order=ctimepg中關於AccessShareLock和ExclusiveLock的問題
https://blog.csdn.net/cdnight/article/details/84452012【pg資料庫】表鎖 行鎖 隔離級別及xmin xmax等系統行含義
https://blog.csdn.net/constzl/article/details/79206887AntDB重分佈流程記錄