ALTER USER

更改数据库用户(角色)的定义。

概要

  1. ALTER USER name RENAME TO newname
  2. ALTER USER name SET config_parameter {TO | =} {value | DEFAULT}
  3. ALTER USER name RESET config_parameter
  4. ALTER USER name RESOURCE QUEUE {queue_name | NONE}
  5. ALTER USER name RESOURCE GROUP {group_name | NONE}
  6. ALTER USER name [ [WITH] option [ ... ] ]

其中option可以是:

  1. SUPERUSER | NOSUPERUSER
  2. | CREATEDB | NOCREATEDB
  3. | CREATEROLE | NOCREATEROLE
  4. | CREATEUSER | NOCREATEUSER
  5. | CREATEEXTTABLE | NOCREATEEXTTABLE
  6. [ ( attribute='value'[, ...] ) ]
  7. where attributes and value are:
  8. type='readable'|'writable'
  9. protocol='gpfdist'|'http'
  10. | INHERIT | NOINHERIT
  11. | LOGIN | NOLOGIN
  12. | REPLICATION | NOREPLICATION
  13. | CONNECTION LIMIT connlimit
  14. | [ENCRYPTED | UNENCRYPTED] PASSWORD 'password'
  15. | VALID UNTIL 'timestamp'
  16. | [ DENY deny_point ]
  17. | [ DENY BETWEEN deny_point AND deny_point]
  18. | [ DROP DENY FOR deny_point ]

描述

ALTER USER是ALTER ROLE的别名。 参阅 ALTER ROLE获取更多信息。

兼容性

ALTER USER语句是一个Greenplum数据库扩展。 SQL标准中使用用户的定义来实现。

See Also

ALTER ROLE

Parent topic: SQL Command Reference