The view applicable_roles identifies all roles whose privileges the current user can use. This means there is some chain of role grants from the current user to the role in question. The current user itself is also an applicable role. The set of applicable roles is generally used for permission checking.
Table 34-3. applicable_roles Columns
|grantee||sql_identifier||Name of the role to which this role membership was granted (can be the current user, or a different role in case of nested role memberships)|
|role_name||sql_identifier||Name of a role|
|is_grantable||yes_or_no||YES if the grantee has the admin option on the role, NO if not|
Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.
Proceed to the comment form.