## 52.82. `pg_roles`

[]()

 The view `pg_roles` provides access to information about database roles. This is simply a publicly readable view of [`pg_authid`](catalog-pg-authid.html) that blanks out the password field.

**Table 52.83. `pg_roles` Columns**

|                                                              Column Type<br/><br/> Description                                                             |
|------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                            `rolname` `name`<br/><br/> Role name                                                            |
|                                                 `rolsuper` `bool`<br/><br/> Role has superuser privileges                                                  |
|                              `rolinherit` `bool`<br/><br/> Role automatically inherits privileges of roles it is a member of                               |
|                                                `rolcreaterole` `bool`<br/><br/> Role can create more roles                                                 |
|                                                  `rolcreatedb` `bool`<br/><br/> Role can create databases                                                  |
|              `rolcanlogin` `bool`<br/><br/> Role can log in. That is, this role can be given as the initial session authorization identifier               |
|`rolreplication` `bool`<br/><br/> Role is a replication role. A replication role can initiate replication connections and create and drop replication slots.|
|    `rolconnlimit` `int4`<br/><br/> For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit.    |
|                                        `rolpassword` `text`<br/><br/> Not the password (always reads as `********`)                                        |
|                `rolvaliduntil` `timestamptz`<br/><br/> Password expiry time (only used for password authentication); null if no expiration                 |
|        `rolbypassrls` `bool`<br/><br/> Role bypasses every row-level security policy, see [Section 5.8](ddl-rowsecurity.html) for more information.        |
|                                 `rolconfig` `text[]`<br/><br/> Role-specific defaults for run-time configuration variables                                 |
|                                 `oid` `oid` (references [`pg_authid`](catalog-pg-authid.html).`oid`)<br/><br/> ID of role                                  |

