CREATE USER

Defines a new database role with the LOGIN privilege by default.

Synopsis

  1. CREATE USER <name> [ [WITH] <option> [ ... ] ]

where

  1. SUPERUSER | NOSUPERUSER
  2. | CREATEDB | NOCREATEDB
  3. | CREATEROLE | NOCREATEROLE
  4. | CREATEUSER | NOCREATEUSER
  5. | INHERIT | NOINHERIT
  6. | LOGIN | NOLOGIN
  7. | [ ENCRYPTED | UNENCRYPTED ] PASSWORD '<password>'
  8. | VALID UNTIL '<timestamp>'
  9. | IN ROLE <rolename> [, ...]
  10. | IN GROUP <rolename> [, ...]
  11. | ROLE <rolename> [, ...]
  12. | ADMIN <rolename> [, ...]
  13. | USER <rolename> [, ...]
  14. | SYSID <uid>
  15. | RESOURCE QUEUE <queue_name>

Description

HAWQ does not support CREATE USER. This command has been replaced by CREATE ROLE.

The only difference between CREATE ROLE and CREATE USER is that LOGIN is assumed by default with CREATE USER, whereas NOLOGIN is assumed by default with CREATE ROLE.

Compatibility

There is no CREATE USER statement in the SQL standard.

See Also

CREATE ROLE