我在Amazon RDS上的PostgreSQL數據庫上擁有用戶abc
。該用戶是超級用戶,只要我可以告訴:Amazon RDS上的pg_terminate_backend的權限
=> grant rds_superuser to abc;
NOTICE: role "abc" is already a member of role "rds_superuser" GRANT ROLE
我試圖殺死一些交易,但是我得到:
=> select pg_terminate_backend(pid) from pg_stat_activity;
ERROR: must be superuser or have the same role to terminate other server processes
我通過亞馬遜RDS文檔廣泛搜索,但我還是不要沒辦法。我在哪裏犯錯誤?
哦,快點。事實上,我確認問題在於試圖終止其他用戶擁有的交易,而不是'abc'。 – julkiewicz