Re: Unable to drop role

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "McGehee, Robert" <Robert(dot)McGehee(at)geodecapital(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Unable to drop role
Date: 2010-08-24 00:11:15
Message-ID: 16094.1282608675@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

"McGehee, Robert" <Robert(dot)McGehee(at)geodecapital(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2010-08-24 00:17:02 Re: WAL and archive disks full
Previous Message Keith Pinnix 2010-08-23 23:47:53 postgresql 8.3 logging user passwords in clear text

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-08-24 00:26:10 Re: WIP: extensible enums
Previous Message Tom Lane 2010-08-24 00:06:25 Re: Problem Using PQcancel in a Synchronous Query