From: | Виктор Егоров <vyegorov(at)gmail(dot)com> |
---|---|
To: | Andreas Kretschmer <andreas(at)a-kretschmer(dot)de> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Bug, Feature, or what else? |
Date: | 2013-02-08 14:37:34 |
Message-ID: | CAGnEboh0irztEFK47CgF=jpx3VHCi-5LWjcA67RF2xLsn0q-nA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
2013/2/8 Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
> How can i drop a user as SUPERUSER (!) with all privileges?
>
According to the docs:
http://www.postgresql.org/docs/current/interactive/sql-droprole.html
> A role cannot be removed if it is still referenced in any database of the
cluster;
> an error will be raised if so. Before dropping the role, you must drop
all the objects
> it owns (or reassign their ownership) and revoke any privileges the role
has been
> granted. The REASSIGN OWNED<http://www.postgresql.org/docs/current/interactive/sql-reassign-owned.html>
and DROP OWNED<http://www.postgresql.org/docs/current/interactive/sql-drop-owned.html>
commands
can be useful for this purpose.
--
Victor Y. Yegorov
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2013-02-08 14:39:13 | Re: Decrease the time required function |
Previous Message | Andreas Kretschmer | 2013-02-08 14:25:59 | Bug, Feature, or what else? |
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2013-02-08 14:49:53 | Re: Bug, Feature, or what else? |
Previous Message | Andreas Kretschmer | 2013-02-08 14:25:59 | Bug, Feature, or what else? |