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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check pg_roles, pg_authid and pg_auth_members to get the details about roles.