CREATE_GROUP(7pg14)

πŸ“¦ version 14.24, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay bestie, this is CREATE GROUP(7) from the PostgreSQL 14.24 Documentation ✨ and the name is literally right here: CREATE_GROUP β€” define a new database role. that’s the vibe, no cap 🫢

✨ SYNOPSIS ✨

the whole spell goes like this:

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

every option up there is exactly as written β€” no extras, no invented flags, no β€œI fixed the spacing” nonsense πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so CREATE GROUP is now an alias for CREATE ROLE (CREATE_ROLE(7)). that’s the whole tea β˜•οΈ β€” it’s giving alias energy, and honestly? iconic.

🌈 COMPATIBILITY 🌈

bad news for the SQL-standard girlies 😭 there is no CREATE GROUP statement in the SQL standard. periodt.

πŸŽ€ SEE ALSO πŸŽ€

  • CREATE ROLE (CREATE_ROLE(7)) β€” the main character this alias points at πŸ’œ

PostgreSQL 14.24 Β· 2026 Β· CREATE GROUP(7) β€” mwah, bestie, go slay your roles πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from