Re: Bug, Feature, or what else?

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bug, Feature, or what else?
Date: 2013-02-08 15:59:13
Message-ID: A737B7A37273E048B164557ADEF4A58B057B1442@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Andreas Kretschmer wrote:
>>> db115150=# revoke all on schema public from ak02;
>>> REVOKE
>>> db115150=# drop user ak02;
>>> FEHLER: kann Rolle »ak02« nicht löschen, weil andere Objekte davon abhängen
>>> DETAIL: Privilegien für Schema public
>>
>> So what does \dn+ public show?
>
> db115150=# \dn+ public
> List of schemas
> Name | Owner | Access privileges | Description
> --------+----------+-----------------------------+------------------------
> public | postgres | postgres=UC/postgres +| standard public schema
> | | akretschmer01=U*C*/postgres+|
> | | ak02=UC/akretschmer01 |
> (1 row)

Seems like you can't revoke privileges you didn't grant,
even as superuser.

Try:

SET SESSION AUTHORIZATION akretschmer01;
REVOKE ALL ON SCHEMA PUBLIC FROM ak02;
RESET SESSION AUTHORIZATION;
DROP USER ak02;

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2013-02-08 16:14:25 Re: Bug, Feature, or what else?
Previous Message Andreas Kretschmer 2013-02-08 15:57:12 Re: Bug, Feature, or what else?

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2013-02-08 16:07:42 Re: Considering Gerrit for CFs
Previous Message Tom Lane 2013-02-08 15:58:27 Re: Considering Gerrit for CFs