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

Поиск
Список
Период
Сортировка
От Felipe Gasper
Тема Re: PGSQL: listing db/role and user/role relationships
Дата
Msg-id 528982E2.6000006@felipegasper.com
обсуждение исходный текст
Ответ на Re: PGSQL: listing db/role and user/role relationships  (Luca Ferrari <fluca1978@infinito.it>)
Ответы Re: PGSQL: listing db/role and user/role relationships
Список pgsql-general
On 17.11.13 2:56 AM, Luca Ferrari wrote:
> 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
>

Thank you!

One more question: how “stable” are these interfaces? Are they by chance
available via information_schema?

-FG


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

Предыдущее
От: Tony Theodore
Дата:
Сообщение: Re: Composite types or composite keys?
Следующее
От: Ken Tanzer
Дата:
Сообщение: Re: What does this error message mean?