CREATE_GROUP(7pg16)
π CREATE GROUP π
ok so real talk, bestie: this page is from the PostgreSQL 16.15 Documentation, and it's a tiny one β like, blink-and-you-miss-it tiny. But we're gonna read it together anyway because that's what friends do π«Ά
β¨ NAME β¨
CREATE_GROUP β define a new database role. that's the whole name section, she's short and she knows it π
πΈ SYNOPSIS πΈ
ok so here's the whole vibe, copied exactly so you don't have to squint at anything:
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 that menu π₯ every single toggle is right there: SUPERUSER / NOSUPERUSER, CREATEDB / NOCREATEDB, CREATEROLE / NOCREATEROLE, INHERIT / NOINHERIT, LOGIN / NOLOGIN, REPLICATION / NOREPLICATION, BYPASSRLS / NOBYPASSRLS, plus 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 [, ...], and SYSID uid. iconic, no notes π
ngl this page doesn't define any of those for you β that's the other page's job (see SEE ALSO, she's down there π). don't come for me, I'm just the messenger π
π¦ DESCRIPTION π¦
ok here's the tea, and it's honestly the shortest tea ever β
CREATE GROUP is now an alias for CREATE ROLE (CREATE_ROLE(7)).
that's it. that's the description. she said "I'm a rebrand, go read the real one." and honestly? respect. π
π COMPATIBILITY π
There is no CREATE GROUP statement in the SQL standard.
so like... the SQL standard has never heard of her π not a single line. this is a PostgreSQL-only situation, iykyk.
β SEE ALSO β
CREATE ROLE(CREATE_ROLE(7)) β the main character π go read this one, fr fr, becauseCREATE GROUPis literally just her alias.
and that's the whole page, bestie π§ you read it, you slayed it, periodt β¨
π signed, sealed, delivered: PostgreSQL 16.15, dated 2026 β see you at the next man page, mwah π π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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