【发布时间】:2018-12-17 18:45:23
【问题描述】:
我试图删除 PostgreSQL 用户:
DROP USER ryan;
我收到了这个错误:
Error in query: ERROR: role "ryan" cannot be dropped because some objects depend on it DETAIL: privileges for database mydatabase
我从这些线程中寻找解决方案:
- PostgreSQL - how to quickly drop a user with existing privileges
- How to drop user in postgres if it has depending objects
仍然有同样的错误。
这发生在我向用户“ryan”授予所有权限后:
GRANT ALL PRIVILEGES ON DATABASE mydatabase ON SCHEMA public TO ryan;
【问题讨论】:
标签: postgresql roles database-administration