We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WITH] option ...
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 [, ...]
ROLE role_name [, ...]
ADMIN role_name [, ...]
SYSID uid
role_name | CURRENT_ROLE | CURRENT_USER | SESSION_USER
ALL
RENAME TO new_name
[ IN DATABASE database_name ]
SET configuration_parameter { TO | = } { value | DEFAULT }
SET configuration_parameter FROM CURRENT
RESET configuration_parameter
RESET ALL
[IF EXISTS]
name, ...
[ SESSION | LOCAL ]
SET ROLE role_name
SET ROLE 'role_name'
SET ROLE NONE
RESET ROLE
ADD USER name, ...
DROP USER name, ...
ALL [ PRIVILEGES ]
{ SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER | MAINTAIN } [, ...]
ON [ TABLE ] table_name [, ...]
ON ALL TABLES IN SCHEMA schema_name [, ...]
{ SELECT | INSERT | UPDATE | REFERENCES } [, ...]
( column_name [, ...] )
{ USAGE | SELECT | UPDATE } [, ...]
ON SEQUENCE seq_name [, ...]
ON ALL SEQUENCES IN SCHEMA schema_name [, ...]
{ CREATE | CONNECT | TEMPORARY | TEMP } [, ...]
ON DATABASE database_name [, ...]
{ USAGE }
ON DOMAIN domain_name [, ...]
ON FOREIGN DATA WRAPPER fdw_name [, ...]
ON FOREIGN SERVER server_name [, ...]
{ EXECUTE }
ON { { FUNCTION | PROCEDURE | ROUTINE } routine_name [, ...]
[ ( [ [ argmode ] [ arg_name ] arg_type [, ...] ] ) ]
ON ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA schema_name [, ...]
ON LANGUAGE lang_name [, ...]
{ SELECT | UPDATE } [, ...]
ON LARGE OBJECT loid [, ...]
{ SET | ALTER SYSTEM } [, ... ]
ON PARAMETER configuration_parameter [, ...]
{ CREATE | USAGE } [, ...]
ON SCHEMA schema_name [, ...]
{ CREATE }
ON TABLESPACE tablespace_name [, ...]
ON TYPE type_name [, ...]
TO role_specification [, ...]
[ WITH GRANT OPTION ]
[ GRANTED BY role_specification ]
[ GROUP ] role_name
PUBLIC
CURRENT_ROLE
CURRENT_USER
SESSION_USER
role_name [, ...]
[ WITH { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ]
[ GRANT OPTION FOR ]
FROM role_specification [, ...]
[ CASCADE | RESTRICT ]
[ { ADMIN | INHERIT | SET } OPTION FOR ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Roles
[WITH] option ...
: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 [, ...]
ROLE role_name [, ...]
ADMIN role_name [, ...]
SYSID uid
role_name | CURRENT_ROLE | CURRENT_USER | SESSION_USER
ALL
[WITH] option ...
RENAME TO new_name
[ IN DATABASE database_name ]
SET configuration_parameter { TO | = } { value | DEFAULT }
SET configuration_parameter FROM CURRENT
RESET configuration_parameter
RESET ALL
[IF EXISTS]
name, ...
[ SESSION | LOCAL ]
SET ROLE role_name
SET ROLE 'role_name'
SET ROLE NONE
RESET ROLE
User mappings
Users
Groups
ADD USER name, ...
DROP USER name, ...
Adding/removing privileges
ALL [ PRIVILEGES ]
{ SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER | MAINTAIN } [, ...]
ON [ TABLE ] table_name [, ...]
ON ALL TABLES IN SCHEMA schema_name [, ...]
{ SELECT | INSERT | UPDATE | REFERENCES } [, ...]
( column_name [, ...] )
ON [ TABLE ] table_name [, ...]
{ USAGE | SELECT | UPDATE } [, ...]
ON SEQUENCE seq_name [, ...]
ON ALL SEQUENCES IN SCHEMA schema_name [, ...]
{ CREATE | CONNECT | TEMPORARY | TEMP } [, ...]
ON DATABASE database_name [, ...]
{ USAGE }
ON DOMAIN domain_name [, ...]
{ USAGE }
ON FOREIGN DATA WRAPPER fdw_name [, ...]
{ USAGE }
ON FOREIGN SERVER server_name [, ...]
{ EXECUTE }
ON { { FUNCTION | PROCEDURE | ROUTINE } routine_name [, ...]
[ ( [ [ argmode ] [ arg_name ] arg_type [, ...] ] ) ]
ON ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA schema_name [, ...]
{ USAGE }
ON LANGUAGE lang_name [, ...]
{ SELECT | UPDATE } [, ...]
ON LARGE OBJECT loid [, ...]
{ SET | ALTER SYSTEM } [, ... ]
ON PARAMETER configuration_parameter [, ...]
{ CREATE | USAGE } [, ...]
ON SCHEMA schema_name [, ...]
{ CREATE }
ON TABLESPACE tablespace_name [, ...]
{ USAGE }
ON TYPE type_name [, ...]
TO role_specification [, ...]
[ WITH GRANT OPTION ]
[ GRANTED BY role_specification ]
[ GROUP ] role_name
PUBLIC
CURRENT_ROLE
CURRENT_USER
SESSION_USER
role_name [, ...]
TO role_specification [, ...]
[ WITH { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ]
[ GRANTED BY role_specification ]
[ GRANT OPTION FOR ]
ALL [ PRIVILEGES ]
FROM role_specification [, ...]
[ GRANTED BY role_specification ]
[ CASCADE | RESTRICT ]
[ { ADMIN | INHERIT | SET } OPTION FOR ]
role_name [, ...]
FROM role_specification [, ...]
[ GRANTED BY role_specification ]
[ CASCADE | RESTRICT ]
The text was updated successfully, but these errors were encountered: