Permissions | Description |
CREATEDB | You can create databases. |
BYPASSRLS | It can bypass all row-level security policy checks. |
REPLICATION | By default, it has the replication permission and can also grant this permission to other users. |
CREATEROLE | It has the CREATEROLE permission as in the community edition, but the pg_read_server_files, pg_write_server_files, and pg_execute_server_program permissions have been removed from the createrole permission set. |
Object | Description |
database | By default, it has permissions for all databases whose owner is not a superuser. |
schema | By default, it has permissions for all schemas whose owner is not a superuser. |
table/sequence | By default, it has permissions for all tables/sequences whose owner is not a superuser. |
function | By default, it has permissions for all functions whose owner is not a superuser. |
language | No special permissions. |
tablespace | No special permissions. |
FDW / foreign server | By default, it has permissions for all FDWs/foreign servers whose owner is not a superuser. |
TYPE | By default, it has permissions for all types whose owner is not a superuser. |
CREATE USER name [ [ WITH ] option [ ... ] ]where option can be:SUPERUSER | NOSUPERUSER| CREATEDB | NOCREATEDB| CREATEROLE | NOCREATEROLE| INHERIT | NOINHERIT| LOGIN | NOLOGIN| REPLICATION | NOREPLICATION| BYPASSRLS | NOBYPASSRLS| CONNECTION LIMIT connlimit| [ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL| VALID UNTIL 'timestamp'| IN ROLE role_name [, ...]| IN GROUP role_name [, ...]| ROLE role_name [, ...]| ADMIN role_name [, ...]| USER role_name [, ...]| SYSID uid
CREATE ROLE name [ [ WITH ] option [ ... ] ]where option can be:SUPERUSER | NOSUPERUSER| CREATEDB | NOCREATEDB| CREATEROLE | NOCREATEROLE| INHERIT | NOINHERIT| LOGIN | NOLOGIN| REPLICATION | NOREPLICATION| BYPASSRLS | NOBYPASSRLS| CONNECTION LIMIT connlimit| [ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL| VALID UNTIL 'timestamp'| IN ROLE role_name [, ...]| IN GROUP role_name [, ...]| ROLE role_name [, ...]| ADMIN role_name [, ...]| USER role_name [, ...]| SYSID uid
ALTER ROLE role_specification [ WITH ] option [ ... ]where option can be:SUPERUSER | NOSUPERUSER| CREATEDB | NOCREATEDB| CREATEROLE | NOCREATEROLE| INHERIT | NOINHERIT| LOGIN | NOLOGIN| REPLICATION | NOREPLICATION| BYPASSRLS | NOBYPASSRLS| CONNECTION LIMIT connlimit| [ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL| VALID UNTIL 'timestamp'
# Simple SyntaxGRANT <permission> on <object> to <role>;
# Simple SyntaxREVOKE <permission> ON <object> FROM <role>;
# Simple SyntaxGRANT <role_name> to <other_role>;
Account Name | Description | Allowed Operations |
tencentdb_admin_* | The string following 'tencentdb_admin_' in the account name and role name is a system-generated random string. | Used by the monitoring component to collect monitoring data and by the management system to perform instance health checks. |
tencentdb_repl_* | The string following 'tencentdb_repl_' in the account name and role name is a system-generated random string. | To implement master-slave data synchronization for instances and to support the backup feature of the backup component. |
repluser | Belongs to the repluser role. | Used by some instances to implement master-slave data synchronization. This account will be deprecated later. |
피드백