Best way to list a role’s owned objects?

Поиск
Список
Период
Сортировка
От Felipe Gasper
Тема Best way to list a role’s owned objects?
Дата
Msg-id 53B2F904.5030801@felipegasper.com
обсуждение исходный текст
Ответы Re: Best way to list a role’s owned objects?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Hi all,

    What is the best way to list a role’s owned objects in any database?

    My problem is that I need to be able to “FORCE DROP ROLE” by taking any
objects that that role owns, in any database, and reassigning them to
the “postgres” user.

    Even if REASSIGN OWNED BY worked for this purpose (it only works on the
current database), I would still need a way to display to the API caller
which objects were reassigned.

    Oh, and this preferably needs to work all the way back to PostgreSQL
8.1. :-<

    Any ideas?

    Thanks!

-Felipe Gasper
Houston, TX


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

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: how to create a role with no privileges?
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Best way to list a role’s owned objects?