53.21. 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.
Column Type Description |
|---|
rolname Role name |
rolsuper Role has superuser privileges |
rolinherit Role automatically inherits privileges of roles it is a member of |
rolcreaterole Role can create more roles |
rolcreatedb Role can create databases |
rolcanlogin Role can log in. That is, this role can be given as the initial session authorization identifier |
rolreplication Role is a replication role. A replication role can initiate replication connections and create and drop replication slots. |
rolconnlimit For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit. |
rolpassword Not the password (always reads as |
rolvaliduntil Password expiry time (only used for password authentication); null if no expiration |
rolbypassrls Role bypasses every row-level security policy, see Row Security Policies for more information. |
rolconfig Role-specific defaults for run-time configuration variables |
oid ID of role |
: pg_roles Columns