Re: Unable to drop role

Поиск
Список
Период
Сортировка
От McGehee, Robert
Тема Re: Unable to drop role
Дата
Msg-id EEBC169715EB8C438D3C9283AF0F201C08DF4CAF@MSGBOSCLM2WIN.DMN1.FMR.COM
обсуждение исходный текст
Ответ на Unable to drop role  ("McGehee, Robert" <Robert.McGehee@geodecapital.com>)
Список pgsql-admin
Thanks Tom and Alvaro for clearing up my confusion.

\l showed that a485099 had both (C)reate and (T)emporary access.
Revoking those allowed me to drop the role. Thanks for the help!

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, August 23, 2010 8:11 PM
To: McGehee, Robert
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Unable to drop role

"McGehee, Robert" <Robert.McGehee@geodecapital.com> writes:
> template1=# DROP ROLE a485099;
> ERROR:  role "a485099" cannot be dropped because some objects depend
on it
> DETAIL:  access to database template1

> template1=# REVOKE CONNECT ON DATABASE template1 FROM a485099;
> REVOKE

CONNECT is not the only possible privilege.  Try REVOKE ALL.

            regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: replication solution
Следующее
От: Kevin Kempter
Дата:
Сообщение: Postgresql 8.3 on OSX hangs