PG_AUTHID
PG_AUTHID records information about database authentication identifiers (roles). The concept of users is contained in that of roles. A user is actually a role whose rolcanlogin has been set. Any role, whether its rolcanlogin is set or not, can use other roles as members.
For GaussDB, only one PG_AUTHID exists, which is not available for every database. This system catalog is accessible only to users with SYSADMIN permissions.
Name |
Type |
Description |
---|---|---|
oid |
oid |
Row identifier (hidden attribute, which must be specified). |
rolname |
name |
Role name. |
rolsuper |
Boolean |
Specifies whether a role is the initial SYSADMIN with the highest permission.
|
rolinherit |
Boolean |
Specifies whether a role automatically inherits permissions of roles of which it is a member.
|
rolcreaterole |
Boolean |
Specifies whether a role can create more roles.
|
rolcreatedb |
Boolean |
Specifies whether a role can create databases.
|
rolcatupdate |
Boolean |
Specifies whether a role can directly update system catalogs. Only the initial SYSADMIN whose usesysid is set to 10 has this permission. This permission is unavailable for other users.
|
rolcanlogin |
Boolean |
Specifies whether a role can log in, that is, whether a role can be given as the initial session authorization identifier.
|
rolreplication |
Boolean |
Specifies whether a role has the replication permission.
|
rolauditadmin |
Boolean |
Specifies whether a role has the AUDITADMIN permission.
|
rolsystemadmin |
Boolean |
Specifies whether a role has the SYSADMIN permission.
|
rolconnlimit |
integer |
Maximum number of concurrent connections that the role can make (valid for roles that can log in). The value –1 indicates there is no limit. |
rolpassword |
text |
Password (possibly encrypted); NULL if no password |
rolvalidbegin |
timestamp with time zone |
Account validity start time (NULL if no start time). |
rolvaliduntil |
timestamp with time zone |
Password expiry time (NULL if no expiration). |
rolrespool |
name |
Resource pool that a user can use. |
roluseft |
Boolean |
Specifies whether a role can perform operations on foreign tables.
|
rolparentid |
oid |
OID of a group user to which the user belongs. |
roltabspace |
text |
Maximum size of a user data table. |
rolkind |
"char" |
Type of a user.
|
rolnodegroup |
oid |
Unsupported currently. |
roltempspace |
text |
Maximum size of a user's temporary table, in KB. |
rolspillspace |
text |
Maximum size of data that can be written to disks when a user executes a job, in KB. |
rolexcpdata |
text |
Query rules that can be set by users (reserved). |
rolmonitoradmin |
Boolean |
Specifies whether a role has the MONADMIN permission.
|
roloperatoradmin |
Boolean |
Specifies whether a role has the O&M administrator permission.
|
rolpolicyadmin |
Boolean |
Specifies whether a role has the POLADMIN permission.
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot