Re: How to drop user if objects depend on it

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: How to drop user if objects depend on it
Дата
Msg-id C5FD8E1CDD614B778F8F5CED24EBD544@dell2
обсуждение исходный текст
Ответ на Re: How to drop user if objects depend on it  (Melvin Davidson <melvin6925@gmail.com>)
Ответы Re: How to drop user if objects depend on it
Список 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.



В списке pgsql-general по дате отправления:

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: How to drop user if objects depend on it
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: How to drop user if objects depend on it