pg_roles
pg_roles#
The view pg_roles
provides access to information about database roles. This is simply a publicly readable view of pg_authid
that blanks out the password field.
This view explicitly exposes the OID column of the underlying table, since that is needed to do joins to other catalogs.
Table 1. pg_catalog.pg_roles
Name |
Type |
References |
Description |
---|---|---|---|
|
|
Role name |
|
|
|
Role has superuser privileges |
|
|
|
Role automatically inherits privileges of roles it is a member of |
|
|
|
Role may create more roles |
|
|
|
Role may create databases |
|
|
|
Role may log in. That is, this role can be given as the initial session authorization identifier |
|
|
|
User can initiate streaming replication and put the system in and out of backup mode |
|
|
|
For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit |
|
|
|
Not the password (always reads as |
|
|
|
Password expiry time (only used for password authentication); NULL if no expiration |
|
|
|
User bypasses every row-level security policy |
|
|
|
Session defaults for run-time configuration variables |
|
|
|
resqueue oid of the user |
|
|
|
|
ID of role |
|
|
Privilege to create read external tables with the |
|
|
|
Privilege to create read external tables with the |
|
|
|
Privilege to create write external tables with the |
|
|
|
Object ID of the associated resource group ID in pg_resgroup |