PG_ROLES
PG_ROLES displays information about database roles. Initialization users and users with the sysadmin or createrole attribute can view information about all roles. Other users can view only their own information.
| Name | Type | Reference | Description |
|---|---|---|---|
| rolname | name | N/A | Role name. |
| rolsuper | boolean | N/A | Specifies whether the role is the initial SYSADMIN with the highest permissions. |
| rolinherit | boolean | N/A | Specifies whether the role inherits the permissions for this type of roles. |
| rolcreaterole | boolean | N/A | Specifies whether the role can create other roles. |
| rolcreatedb | boolean | N/A | Specifies whether the role can create databases. |
| rolcatupdate | boolean | N/A | Specifies whether the role can update system catalogs directly. Only the initial SYSADMIN whose usesysid is set to 10 has this permission. This permission is unavailable for other users. |
| rolcanlogin | boolean | N/A | Specifies whether the role can log in to the database. |
| rolreplication | boolean | N/A | Specifies whether the role can be replicated. |
| rolauditadmin | boolean | N/A | Specifies whether the role is an AUDITADMIN. |
| rolsystemadmin | boolean | N/A | Specifies whether the role is a SYSADMIN. |
| rolconnlimit | integer | N/A | Maximum number of concurrent connections that this role can initiate if this role can log in. The value –1 indicates no limit. |
| rolpassword | text | N/A | Encrypted user password. The value is displayed as ********. |
| rolvalidbegin | timestamp with time zone | N/A | Start time for account validity (NULL if the start time is not specified). |
| rolvaliduntil | timestamp with time zone | N/A | End time for account validity (NULL if the end time is not specified). |
| rolrespool | name | N/A | Resource pool that can be used by a user. |
| rolparentid | oid | PG_AUTHID.rolparentid | OID of a group user to which the user belongs. |
| roltabspace | text | N/A | Storage space limit of the user permanent table, in KB. |
| roltempspace | text | N/A | Storage space of the user temporary table, in KB. |
| rolspillspace | text | N/A | Operator disk spill space of the user, in KB. |
| rolconfig | text[] | PG_DB_ROLE_SETTING.setconfig | Default value of runtime configuration items. |
| oid | oid | oid in PG_AUTHID | Role ID |
| roluseft | boolean | PG_AUTHID.roluseft | Specifies whether the role can perform operations on foreign tables. |
| rolkind | "char" | N/A | Role type
|
| nodegroup | name | N/A | Unsupported currently. |
| rolmonitoradmin | boolean | N/A | Specifies whether the role is a MONADMIN. |
| roloperatoradmin | boolean | N/A | Specifies whether the role is an O&M administrator. |
| rolpolicyadmin | boolean | N/A | Specifies whether the role is a POLADMIN. |