Re: PGSQL: listing db/role and user/role relationships

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема Re: PGSQL: listing db/role and user/role relationships
Дата
Msg-id CAKoxK+56cdPME_ofQvMX0_xqGch=ysqMxF9voG7W9xmHvptXzQ@mail.gmail.com
обсуждение исходный текст
Ответ на PGSQL: listing db/role and user/role relationships  (Felipe Gasper <felipe@felipegasper.com>)
Ответы Re: PGSQL: listing db/role and user/role relationships  (Felipe Gasper <felipe@felipegasper.com>)
Список pgsql-general
On Sat, Nov 16, 2013 at 1:19 AM, Felipe Gasper <felipe@felipegasper.com> wrote:
> Hi all,
>
>         How can I retrieve:
>
>
> 1) each role’s privileges on a given DB
>

Do you mean pg_database.datacl?
http://www.postgresql.org/docs/current/static/catalog-pg-database.html

> 2) which users have access to a given role
> 3) which roles a given user can access

I guess playing with pg_roles and pg_auth_member will provide you all
the information.

Hope this helps.
Luca


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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Visibility of table aliases in CTEs
Следующее
От: oka
Дата:
Сообщение: N prefix and ::bpchar