CREATE_GROUP(7pg13)
π CREATE GROUP (7) π
ok so like β welcome to the CREATE GROUP page, bestie. this is a PostgreSQL 13 manual page (yep, the big one π
), and honestly? it's a short one. a little snack. a bite-size lil entry. let's get into it β¨
π NAME π
CREATE_GROUP β define a new database role π«Ά
β¨ SYNOPSIS β¨
CREATE GROUP 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
like, look at all those options β she's got range π
every single one of them is listed up there, no gatekeeping, no cap. WITH is optional (square brackets, bestie), and you can stack as many options as you want.
πΈ DESCRIPTION πΈ
okay so here's the tea, and it's honestly kind of iconic: CREATE GROUP is now an alias for CREATE ROLE β the one and only CREATE_ROLE(7). π
that's it. that's the description. she said "I'm a rebrand of a legend" and left. main character energy fr fr.
π¦ COMPATIBILITY π¦
sooo... there is no CREATE GROUP statement in the SQL standard. π not a single one. it's giving "we made this at home." so if you're out here vibe-checking your SQL against the standard, this ain't it β lowkey it's a PostgreSQL thing, not a standard thing.
π SEE ALSO π
CREATE ROLE(CREATE_ROLE(7)) π β the real one, the blueprint, the source material. go read her next.
ngl this whole page is basically a "see also" to CREATE ROLE, so if you're gonna do the thing, do the thing over there and take this page with you as the lil callback π«Ά
and that's the vibe check! π this lil cutie of a page is from PostgreSQL 13.23, dated 2025 β CREATE GROUP(7), besties, signing off β¨ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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