Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdPsW-000G3Q-05 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jan 2026 09:30:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdPsU-00DEBI-3C for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jan 2026 09:30:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdPsU-00DEB9-2D for pgsql-hackers@lists.postgresql.org; Wed, 07 Jan 2026 09:30:55 +0000 Received: from mail-dl1-x122b.google.com ([2607:f8b0:4864:20::122b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdPsT-004goq-27 for pgsql-hackers@lists.postgresql.org; Wed, 07 Jan 2026 09:30:54 +0000 Received: by mail-dl1-x122b.google.com with SMTP id a92af1059eb24-11f3a10dcbbso1109462c88.1 for ; Wed, 07 Jan 2026 01:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767778252; x=1768383052; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GKZ67yjnvLt3MH4BcdOZa0dd3d1DkCMI1LYNF+al9SU=; b=fFL183MGvO67eLhNesy+WOhVzlSKO2Yf/rvrK+hhuWxsqwGNgxzggdB9YT452qswaD SJN+kf64vsVxA4AlnFSo93mY9odh2oZS9kXJLqJUqKO6S44mVhfXvmDKsY+KiCjRpgVV GBc0eh/5KQqsiVx6znGzh0Z16mVxb6qryEj/xwRfcAsaDyAO2cQ9POSjIsvczMNcRi27 IyfUQvf6eqIQAeFTgXy1YSzim+gJ3Jo+0yFcxpdjRVhhKmY9aM4Z0KsaNVv1jLXtWmPj 7tHUfCH3RugaQvujSe80hpKx21tidm4KEqSnPKLbwy+3MjnZRCxfZJD5HZ+wUzMu8a35 YQTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767778252; x=1768383052; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GKZ67yjnvLt3MH4BcdOZa0dd3d1DkCMI1LYNF+al9SU=; b=FdFgRK31Xnf36xQ7TWZMUmvTdEtYJJnYg1YdBgGT8/TqIWSd/TVKaDT9X8DqWUvKKK 3WV1fmueWrfbUBlcXvbMJlJYrCwGnxJimktSgJbZDdM75cGawbX/EMCwpWUpzz+x7v1u DP/k/PETMT3FvSN5thZaPR6Y2PUJDSD3FMnJI8ghYI7Z7PBj3WGoZOZiSt8QtmadTtmP mQzrCSJHn+MLjmuoayGu/oKcIxCD90lFboz1wyM0j6ecunJrXHdobe2nsymF6RoD8oR9 WpeT6sbWSaJaabDqLxrhvgM0QHyfV+JO7PaIQFFh9gspiIIBRtKFmNvDEPAhNKMpD0no BJVQ== X-Gm-Message-State: AOJu0YzGsL1ra+5kMlEEJGh4NstyU8XrEro8QxPQtsHr4SnJpG9PgUxp KIJ2r2tsKbT2QxtlwA62g9IzgSmOv8gdttbDrdQ8VLArokQJJudlxhOHIB36bb/EAB4= X-Gm-Gg: AY/fxX61Zud4+I7wpZb+jXe5pSH+052Aiu0bb2//699+tBTHDjY88EfT06PHv4ARQhM AHoRswNk8b2zIa9CC/xH7NHbA/o8XATCR8lOKyurJchFz2XTRe3s5dA4PVOdSEngKfeWPkcZVzs toaDP95dbBInhFSte7R+Qq9DID+UxWJ9Zi0zy5odT6fbyoUK7OZEzWTp+Ucyhg+SZPIZLdpzRlT 6lCgo5gX7Z5fQ/Xv4yntl3oDs8TI7fVT2fleu6nBirmBL3zA9cigUmlHTHlgmaoc8ohwaxwjViR f3YspERuadr06ihO46HCKAKG52JC+RBKK6sxx0HVsii2HKNrHD3ATs4rx4eQlm6rBnD+zUwbvxw HQrY6sG/Qf97DlPDoMfJ5widuCY0xknrXcHlU3GUKDS9vyYg6akhnUKeUcrxwnRCoVKz1ZZ7T3N Qk6yC7+kfLtAS6Uwyu/dn63O3/426HwnI= X-Google-Smtp-Source: AGHT+IFoWmrxosv9bY0mNh6HDv2ojaEAOYGBDQ8rdixwj5u7XQlIeJFdsXOWsgNkZQDPWPSbAUB96A== X-Received: by 2002:a05:7022:2217:b0:11d:f44d:34db with SMTP id a92af1059eb24-121f8b8dc49mr1401749c88.35.1767778252115; Wed, 07 Jan 2026 01:30:52 -0800 (PST) Received: from smtpclient.apple ([142.171.105.12]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-121f243496asm9229617c88.1.2026.01.07.01.30.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jan 2026 01:30:51 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Remove deprecated role membership options from psql help for CREATE USER/GROUP From: Chao Li In-Reply-To: Date: Wed, 7 Jan 2026 17:30:16 +0800 Cc: Postgres hackers Content-Transfer-Encoding: quoted-printable Message-Id: <5A39E825-95E5-40E9-98DC-22D89240B39F@gmail.com> References: To: Japin Li X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 6, 2026, at 18:16, Japin Li wrote: >=20 >=20 > Hi, >=20 > When I review [1], I found commit 8e78f0a1 deprecated the IN GROUP and = USER > clauses in CREATE ROLE, and also removed IN GROUP and USER from the = psql \h > CREATE ROLE help output. >=20 > However, the psql help for the legacy synonyms CREATE USER and CREATE = GROUP > still lists the deprecated options: >=20 > - IN GROUP role_name [, ...] > - USER role_name [, ...] >=20 > postgres=3D# \h create role > Command: CREATE ROLE > Description: define a new database role > Syntax: > CREATE ROLE name [ [ WITH ] option [ ... ] ] >=20 > where option can be: >=20 > 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 [, ...] > | ROLE role_name [, ...] > | ADMIN role_name [, ...] > | SYSID uid >=20 > URL: https://www.postgresql.org/docs/devel/sql-createrole.html >=20 > postgres=3D# \h create user > Command: CREATE USER > Description: define a new database role > Syntax: > CREATE USER name [ [ WITH ] option [ ... ] ] >=20 > where option can be: >=20 > 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 >=20 > URL: https://www.postgresql.org/docs/devel/sql-createuser.html >=20 > postgres=3D# \h create group > Command: CREATE GROUP > Description: define a new database role > Syntax: > CREATE GROUP name [ [ WITH ] option [ ... ] ] >=20 > where option can be: >=20 > 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 >=20 > URL: https://www.postgresql.org/docs/devel/sql-creategroup.html >=20 > Since CREATE USER is documented as equivalent to CREATE ROLE WITH = LOGIN, and > CREATE GROUP is equivalent to CREATE ROLE, their help syntax should = remain > consistent with CREATE ROLE. >=20 > I propose removing the deprecated IN GROUP and USER lines from the = help text > of both CREATE USER and CREATE GROUP. This would be a simple = documentation > cleanup that aligns the psql help with current reality and avoids = confusing > users with obsolete syntax. >=20 > [1] = https://www.postgresql.org/message-id/4c5f895e-3281-48f8-b943-9228b7da6471= %40gmail.com >=20 > --=20 > Regards, > Japin Li > ChengDu WenWu Information Technology Co., Ltd. >=20 > ``` This commit removes the deprecated IN GROUP and USER lines from the psql help output for CREATE USER and CREATE GROUP. ``` The commit message claims to remove things from psql help output, but = the change actually updated the SGML docs. Does the patch miss the = change on psql? Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/