From d8145f1c08123a8bd80b571e99343648cc02de65 Mon Sep 17 00:00:00 2001 From: Japin Li Date: Tue, 6 Jan 2026 18:03:13 +0800 Subject: [PATCH v1] Remove deprecated role options for CREATE USER/GROUP Commit 8e78f0a1 deprecated the IN GROUP and USER clauses in CREATE ROLE and removed them from the psql \h CREATE ROLE output. However, the legacy synonyms CREATE USER and CREATE GROUP continued to list these deprecated options in their \h help text: | IN GROUP role_name [, ...] | USER role_name [, ...] Since CREATE USER is equivalent to CREATE ROLE ... WITH LOGIN and CREATE GROUP is equivalent to CREATE ROLE, their help syntax should stay consistent with CREATE ROLE to avoid confusing users with obsolete syntax. This commit removes the deprecated IN GROUP and USER lines from the psql help output for CREATE USER and CREATE GROUP. --- doc/src/sgml/ref/create_group.sgml | 2 -- doc/src/sgml/ref/create_user.sgml | 2 -- 2 files changed, 4 deletions(-) diff --git a/doc/src/sgml/ref/create_group.sgml b/doc/src/sgml/ref/create_group.sgml index d124c98eb51..119d5ff3eb4 100644 --- a/doc/src/sgml/ref/create_group.sgml +++ b/doc/src/sgml/ref/create_group.sgml @@ -36,10 +36,8 @@ CREATE GROUP name [ [ WITH ] 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 diff --git a/doc/src/sgml/ref/create_user.sgml b/doc/src/sgml/ref/create_user.sgml index 48d2089238c..8a138c001c2 100644 --- a/doc/src/sgml/ref/create_user.sgml +++ b/doc/src/sgml/ref/create_user.sgml @@ -36,10 +36,8 @@ CREATE USER name [ [ WITH ] 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 -- 2.43.0