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

From: Felipe Gasper <felipe(at)felipegasper(dot)com>
To: Luca Ferrari <fluca1978(at)infinito(dot)it>, pgsql-general(at)postgresql(dot)org
Subject: Re: PGSQL: listing db/role and user/role relationships
Date: 2013-11-18 03:00:50
Message-ID: 528982E2.6000006@felipegasper.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 17.11.13 2:56 AM, Luca Ferrari wrote:
> On Sat, Nov 16, 2013 at 1:19 AM, Felipe Gasper <felipe(at)felipegasper(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ken Tanzer 2013-11-18 03:03:29 Re: What does this error message mean?
Previous Message Tony Theodore 2013-11-18 02:57:32 Re: Composite types or composite keys?