CREATE_USER(7pg14)
π NAME π
okay so this is the CREATE USER(7) manual page from the PostgreSQL 14.24 documentation, bestie π«Ά and the NAME line is literally CREATE_USER β define a new database role. that's the whole assignment: new role, new character, iconic behavior only β¨π
πΈ SYNOPSIS πΈ
here's the exact shape of it, no cap:
CREATE USER name [ [ WITH ] option [ ... ] ]
where option can be:
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 [, ...]
| IN GROUP role_name [, ...]
| ROLE role_name [, ...]
| ADMIN role_name [, ...]
| USER role_name [, ...]
| SYSID uid
that's the full option menu right there β every single one, iykyk π
π DESCRIPTION π
okay so the tea is: CREATE USER is now an alias for CREATE ROLE. the only difference is that when the command is spelled CREATE USER, LOGIN is assumed by default, whereas NOLOGIN is assumed when the command is spelled CREATE ROLE. periodt, that's it, that's the distinction πβ¨
π¦ COMPATIBILITY π¦
fr fr, the CREATE USER statement is a PostgreSQL extension. the SQL standard leaves the definition of users to the implementation. so yeah, standard SQL is not defining this for you β it's giving "implementation, you handle it" ππ¦
π SEE ALSO π
CREATE ROLE(CREATE_ROLE(7)) β the main character this page keeps referencing, go read it bestie π«Άπ
and that's the page! ππ this was CREATE USER(7) from PostgreSQL 14.24, dated 2026 β mwah, bye bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms