Re: Bug, Feature, or what else? - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: Bug, Feature, or what else?
Date
Msg-id 186866016.24912.1360335467810.JavaMail.open-xchange@ox.ims-firmen.de
Whole thread Raw
In response to Re: Bug, Feature, or what else?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-general
> > How can i drop a user as SUPERUSER (!) with all privileges?
>
> You have to revoke the permissions that you granted.
>
> There are two options:
>
> db115150=3D# DROP OWNED BY ak02;
> DROP OWNED
>
> or
>
> db115150=3D# REVOKE ALL ON SCHEMA public FROM ak02;
> REVOKE
>
> Then you can drop the user.
>
> Yours,
> Laurenz Albe

nice idea, but unfortunately no:

db115150=3D# drop owned by ak02;
DROP OWNED
db115150=3D# drop user ak02;
FEHLER:  kann Rolle =C2=BBak02=C2=AB nicht l=C3=B6schen, weil andere Objekt=
e davon abh=C3=A4ngen
DETAIL:  Privilegien f=C3=BCr Schema public


Andreas

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Bug, Feature, or what else?
Next
From: Andreas Kretschmer
Date:
Subject: Re: Bug, Feature, or what else?