CREATE_GROUP(7pg15)
π CREATE_GROUP β define a new database role
okay so real talk, bestie: this page is from the PostgreSQL 15.19 Documentation and it's honestly the shortest glow-up in the whole manual. but we're still gonna read it properly because that's just who we are π
β¨ NAME β¨
CREATE_GROUP β define a new database role. that's it. that's the whole job. she's a group, she's a role, she contains multitudes π
π SYNOPSIS π
here's the whole shape of it, copy-paste this energy exactly:
CREATE GROUP name [ [ WITH ] option [ ... ] ]
and here's what option can be β literally all of them, no cap:
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
and in list form, because some of us (me) need the vibe laid out π¦:
SUPERUSER/NOSUPERUSERCREATEDB/NOCREATEDBCREATEROLE/NOCREATEROLEINHERIT/NOINHERITLOGIN/NOLOGINREPLICATION/NOREPLICATIONBYPASSRLS/NOBYPASSRLSCONNECTION LIMIT connlimit[ ENCRYPTED ] PASSWORD 'password'/PASSWORD NULLVALID UNTIL 'timestamp'IN ROLE role_name [, ...]IN GROUP role_name [, ...]ROLE role_name [, ...]ADMIN role_name [, ...]USER role_name [, ...]SYSID uid
every name, option, connlimit, password, timestamp, role_name and uid up there is a placeholder β don't type the word "name" and then act surprised, iykyk π
πΈ DESCRIPTION πΈ
okay, the big reveal, and it's lowkey iconic: CREATE GROUP is now an alias for CREATE ROLE (that's CREATE_ROLE(7)). she changed her name, she's the same queen. main character energy all around π
fr fr though β if you were looking for the actual deep-dive on all those options, the docs are pointing you at CREATE_ROLE(7). this page is the alias page, not the lore page π«Ά
π COMPATIBILITY π
there is no CREATE GROUP statement in the SQL standard. not a one. zero. nada. so if some other database is acting like this is standard behaviour, bestie, it's giving made-up π
β SEE ALSO β
CREATE ROLEβCREATE_ROLE(7)β go here, this is where the real content lives π
and that's the whole page, short and sweet, we ate and left no crumbs π
cute little sign-off: this was PostgreSQL 15.19, dated 2026 π go forth and make roles, bestie π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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