ALTER USER
名称
ALTER USER -- 更改一个数据库角色
大纲
ALTER USER role_specification [ WITH ] option [ ... ]
这里的 option 可以是:
SUPERUSER | NOSUPERUSER
| CREATEDB | NOCREATEDB
| CREATEROLE | NOCREATEROLE
| CREATEUSER | NOCREATEUSER
| INHERIT | NOINHERIT
| LOGIN | NOLOGIN
| REPLICATION | NOREPLICATION
| BYPASSRLS | NOBYPASSRLS
| CONNECTION LIMIT connlimit
| [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password'
| VALID UNTIL 'timestamp'
ALTER USER name RENAME TO new_name
ALTER USER role_specification SET configuration_parameter { TO | = } { value | DEFAULT }
ALTER USER role_specification SET configuration_parameter FROM CURRENT
ALTER USER role_specification RESET configuration_parameter
ALTER USER role_specification RESET ALL
这里的 role_specification可以是:
[ GROUP ] role_name
| CURRENT_USER
| SESSION_USER
兼容性
ALTER USER语句是一种
PostgreSQL扩展。SQL 标准把用户的定义留给实现来处理。
<
/BODY
>