📜  无法删除 postgres 中的角色 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:49.802000             🧑  作者: Mango

代码示例1
REASSIGN OWNED BY ryan TO postgres;  -- or some other trusted role
DROP OWNED BY ryan;
-- repeat in ALL databases where the role owns anything or has any privileges!

DROP USER ryan;