以前は同じ名前「xyz」のスキーマの所有者だったロール「xyz」を削除しようとしています。以下のようにスキーマの所有権を変更し、念のため再割り当てされた所有権を実行しました (ただし、すべてのテーブルはスーパーユーザー権限を持つ別のユーザーによって作成されました)。だから私はこれらすべてを実行します:
alter schema xyz owner to postgres;
reassign owned by xyz to postgres;
alter default privileges in schema seeds revoke all on tables from xyz cascade;
alter default privileges in schema seeds revoke all on sequences from xyz cascade;
alter default privileges in schema seeds revoke all on functions from xyz cascade;
それでもエラーが発生します:
drop role xyz;
ERROR: role "xyz" cannot be dropped because some objects depend on it
DETAIL: owner of default privileges on new relations belonging to role xyz in schema xyz
参考までに:
postgres=# \du rsi
List of roles
Role name | Attributes | Member of
-----------+----------------+-----------
rsi | No inheritance | {}
私は何が欠けていますか?どんな助けでも大歓迎です!ありがとう!!