GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.postgresql.org — CREATE USER November 19, 2026: PostgreSQL 19 Released!
Development Versions:
devel
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead. CREATE USERNameCREATE USER -- define a new database user accountSynopsisCREATE USER username [ [ WITH ] option [ ... ] ]
where option can be:
SYSID uid
| [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password'
| CREATEDB | NOCREATEDB
| CREATEUSER | NOCREATEUSER
| IN GROUP groupname [, ...]
| VALID UNTIL 'abstime'
Inputs
Outputs
DescriptionCREATE USER will add a new user to an instance of PostgreSQL. Refer to the administrator's guide for information about managing users and authentication. You must be a database superuser to use this command. Use ALTER USER to change a user's password and privileges, and DROP USER to remove a user. Use ALTER GROUP to add or remove the user from other groups. PostgreSQL comes with a script createuser which has the same functionality as this command (in fact, it calls this command) but can be run from the command shell. UsageCreate a user with no password: CREATE USER jonathan Create a user with a password: CREATE USER davide WITH PASSWORD 'jw8s0F4'; Create a user with a password, whose account is valid until the end of 2001. Note that after one second has ticked in 2002, the account is not valid: CREATE USER miriam WITH PASSWORD 'jw8s0F4' VALID UNTIL 'Jan 1 2002'; Create an account where the user can create databases: CREATE USER manuel WITH PASSWORD 'jw8s0F4' CREATEDB; CompatibilitySQL92There is no CREATE USER statement in SQL92. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |