- publishing free software manuals
PostgreSQL Reference Manual - Volume 2 - Programming Guide
by The PostgreSQL Global Development Group
Paperback (6"x9"), 408 pages
ISBN 0954612035
RRP £19.95 ($34.95)

Sales of this book support the PostgreSQL project! Get a printed copy>>>

4.20 enabled_roles

The view enabled_roles identifies the currently “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 “applicable roles” is applied, which may be broader than the set of enabled roles. So generally, it is better to use the view applicable_roles instead of this one; see also there.

4-18: enabled_roles Columns
Name Data Type Description
role_name sql_identifier Name of a role
ISBN 0954612035PostgreSQL Reference Manual - Volume 2 - Programming GuideSee the print edition