From: | "Andrus" <kobruleht2(at)hot(dot)ee> |
---|---|
To: | "Melvin Davidson" <melvin6925(at)gmail(dot)com>, "Adrian Klaver" <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | "Thom Brown" <thom(at)linux(dot)com>, "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: How to drop user if objects depend on it |
Date: | 2015-10-07 14:48:45 |
Message-ID: | C5FD8E1CDD614B778F8F5CED24EBD544@dell2 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi!
>Can you connect as user postgres? IE: psql -U postgres -d <yourdb>
Applicaton has admin users which should be able to delete other users.
Those users dont have superuser rights.
I can connect as user postgres for testing only.
I'm looking for a way to delete users without superuser right.
>If so, then you should have the ability to execute the commands without any
>problem.
I tried in database ktp :
reassign owned by farukkugay to postgres;
drop user farukkugay ;
This causes error
ERROR: role "farukkugay" cannot be dropped because some objects depend on
it
DETAIL: privileges for schema public
So even superuser cannot delete.
Andrus.
From | Date | Subject | |
---|---|---|---|
Next Message | Melvin Davidson | 2015-10-07 14:52:31 | Re: How to drop user if objects depend on it |
Previous Message | Andrus | 2015-10-07 14:40:14 | Re: How to drop user if objects depend on it |