я пытаюсь удалить роль «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 | {}
Что мне не хватает? Будем признательны за любую помощь! Спасибо!!