views:

33

answers:

1

Hello,
If I create a user in a group, like:

create role user_1 login inherit in role group_1;

later, with which query could I retrieve to which group(s) a user belongs to ?

Thanks !

+1  A: 

Check pg_roles, pg_authid and pg_auth_members to get the details about roles.

Frank Heikens
I was just answering with a link to pg_auth_members too!
Stephen Denne