| From: | Andreas Kretschmer <andreas(at)a-kretschmer(dot)de> |
|---|---|
| To: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Bug, Feature, or what else? |
| Date: | 2013-02-08 14:57:47 |
| Message-ID: | 186866016.24912.1360335467810.JavaMail.open-xchange@ox.ims-firmen.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
> > 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=# DROP OWNED BY ak02;
> DROP OWNED
>
> or
>
> db115150=# REVOKE ALL ON SCHEMA public FROM ak02;
> REVOKE
>
> Then you can drop the user.
>
> Yours,
> Laurenz Albe
nice idea, but unfortunately no:
db115150=# drop owned by ak02;
DROP OWNED
db115150=# drop user ak02;
FEHLER: kann Rolle »ak02« nicht löschen, weil andere Objekte davon abhängen
DETAIL: Privilegien für Schema public
Andreas
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andreas Kretschmer | 2013-02-08 14:58:59 | Re: Bug, Feature, or what else? |
| Previous Message | Adrian Klaver | 2013-02-08 14:52:24 | Re: Bug, Feature, or what else? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andreas Kretschmer | 2013-02-08 14:58:59 | Re: Bug, Feature, or what else? |
| Previous Message | Alvaro Herrera | 2013-02-08 14:57:37 | Re: Vacuum/visibility is busted |