PostgreSQL

PostgreSQL Elephant Logo

37.24. enabled_roles

The view enabled_roles identifies the currently “[.quote]#enabled roles”#. The enabled roles are recursively defined as the current user together with all roles that have been granted to the enabled roles with automatic inheritance. In other words, these are all roles that the current user has direct or indirect, automatically inheriting membership in.

For permission checking, the set of “[.quote]#applicable roles”# is applied, which can be broader than the set of enabled roles. So generally, it is better to use the view applicable_roles instead of this one; See Section 37.5 for details on applicable_roles view.

Table 37.22. enabled_roles Columns

Name Data Type Description

role_name

sql_identifier

Name of a role

+

Prev Up Next

37.23. element_types

Home

37.25. foreign_data_wrapper_options

Copyright © 1996-2023 The PostgreSQL Global Development Group