Re: drop role fails

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: drop role fails
Дата
Msg-id 20081029155144.GB4331@alvh.no-ip.org
обсуждение исходный текст
Ответ на drop role fails  (Marc Fromm <Marc.Fromm@wwu.edu>)
Список pgsql-admin
Marc Fromm wrote:
> I need to drop a role/user but receive the message:
> ERROR:  role "ken" cannot be dropped because some objects depend on it
> DETAIL:  1 objects in database css
> 1 objects in database manuals
> 1 objects in database cswe2
>
> I checked the databases listed and the user/role ken is not associated with any items in the database, owner is
alwayslisted as postgres. 

Probably it has been granted permissions.  Try DROP OWNED BY (which
should revoke the permissions), maybe preceded by REASSIGN OWNED BY just
to ensure you don't drop objects you wanted to keep ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Marc Fromm
Дата:
Сообщение: drop role fails
Следующее
От: "Peter Koczan"
Дата:
Сообщение: SSL and md5 password?