Próbuję upuścić rolę "xyz", która wcześniej była właścicielem schematu o tej samej nazwie "xyz". Zmieniłem własność schematu, jak poniżej, i na wszelki wypadek uruchom ponownie przydzielone prawo własności (chociaż wszystkie tabele zostały utworzone przez innego użytkownika z mocą superużytkownika). Więc biegnę wszystko:Rola zrzutów PostgreSQL nie powiodła się z powodu domyślnych uprawnień
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;
I wciąż otrzymuję błąd:
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
także FYI:
postgres=# \du rsi
List of roles
Role name | Attributes | Member of
-----------+----------------+-----------
rsi | No inheritance | {}
Czego mi brakuje? Każda pomoc będzie doceniona! Dzięki!!
Przenieść to do dba.stackexchange.com? –