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 1vir44-00HGtW-0W for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Jan 2026 09:33:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vir42-00CCYh-1W for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Jan 2026 09:33:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vir42-00CCYY-0Z for pgsql-hackers@lists.postgresql.org; Thu, 22 Jan 2026 09:33:18 +0000 Received: from mail-dy1-x1336.google.com ([2607:f8b0:4864:20::1336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vir40-001sWy-0d for pgsql-hackers@lists.postgresql.org; Thu, 22 Jan 2026 09:33:18 +0000 Received: by mail-dy1-x1336.google.com with SMTP id 5a478bee46e88-2b0ea1edf11so1811736eec.0 for ; Thu, 22 Jan 2026 01:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769074393; x=1769679193; 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=GYQp6i0HQ53Kcn9it/0JzWi7ZEQQl5X9Oa26A/VFe28=; b=G+4vgMNI+OEwo2UXBjUe5WyaBD6ZpNf5F3C9LM0LGV4xs8kW1eHrJBj7cpjZtD62Q1 ILK3ntyE17AahVNh8gIoPmnqzot3XT+4yuU5Cu0qfDwak0oTCXZaEyWFEqwS6/4JVaEA omZJPg56S1f+D/MuN1+6ObWkEYyJ5ldMPoT8n3CrRaHQfBHpamEMNNterTTh63IaLM4u smNZSsnHxYGvM1fv5hysmfuFEHBZreCkxJ4sbgMDl+81eydRqckODirSxPjRqMweArES hD7hu+VJb2+qHgziOfhsbJxF6RDDC2M84/CzsZImu/HATKRkIQFme3bUCKUOV/AMOhmu fAMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769074393; x=1769679193; 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=GYQp6i0HQ53Kcn9it/0JzWi7ZEQQl5X9Oa26A/VFe28=; b=McHtTDERpSjhx/BtyY+md9Ken5p0PFy/SE2tNKs+hvoUjlY4C4XtSWtw0bt0ONNewV qaIE9utzODbNyAyjhlZ0wzYglaoG83IB290Z3U0Z3pSkrrijFMG5cz/XgKyeejTJaLnM s+rWbyCUmeoKKjl2z9xUd2uD2BbgSnvjduNzLhgVKUwYEAN3Zht8CswziifvckzCRPkC LETggCN0nZgcwnV0DDH00JjAW/vALvB2DDx3WH+YH3XDxOLmGV0cVw5PdHxewYtKK5ZP st7XYZhYdOIls9v9vt7KevQFHvYvXHixGjriWfb1PjDqEmgj6tlp5HcsIeSZ+lFLVHdR lhrg== X-Gm-Message-State: AOJu0YxiEA4jjeqvxGhlvWoRg4Ya9IOkSvEbcVy2tDiZ9Xu3/NRwcovd OvgV3pd154yUeDp/BHpsqEIiZSEiYXohXnp2AYvcVSyVKt3Ut0jZDY1OLqDy0w== X-Gm-Gg: AZuq6aKMug/pp5z6Vx69Kk2JdxH1hiAiFyxmypKQaCwoMZqwx5nKjtRJQRa9ZL10/nr jPBFfHyk3OG53MHJC5vhcpvNS4oTkS1PWFnTj7RLcduVmT29AHg8uZSybnlKK/LK2sM/D1jsflv JcEpRW//gEOl2rh9Kly940ZIBGKDtShvlS2W3YjMLpqAhhIj5Q1wI61D3BYvnZ7xl1OA+1pdjEL g4Y8bC7nRv4aNxZyZPQLC+CAtwnv6sRWv3zCmBDzKqDR80NkjRtEN5vWQ4tLSzvjkkt2dFkuB1p A0N52e2fESEk/vUTSlQgTUnlzuvHAWgROCjZKdtchpi0MU/BDCTd2fK6WLfqvtY5/rwfZ0sNHiy QuZaUJ92U/6TYmTwEQRHCFSp4lxtCyUVjSXN7ZK1tXBi5VVXwV1MZ2X7PBz4eIPfV6yhgRjIxf6 IQxIyOdlA0tW6li5Gmwnra X-Received: by 2002:a05:7301:a83:b0:2b0:5337:1d8b with SMTP id 5a478bee46e88-2b6b4e5b8b1mr13777071eec.17.1769074393426; Thu, 22 Jan 2026 01:33:13 -0800 (PST) Received: from smtpclient.apple ([196.247.24.158]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b6b34c1177sm28230157eec.7.2026.01.22.01.33.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2026 01:33:12 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.300.41.1.7\)) Subject: Re: DOC: fixes multiple errors in alter table doc From: Chao Li In-Reply-To: Date: Thu, 22 Jan 2026 17:32:38 +0800 Cc: Postgres hackers Content-Transfer-Encoding: quoted-printable Message-Id: <7D4CB5FF-6599-4157-A9E3-7B5E2CB96CEE@gmail.com> References: To: Robert Treat X-Mailer: Apple Mail (2.3864.300.41.1.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 8, 2026, at 09:38, Chao Li wrote: >=20 >=20 >=20 >> On Jan 8, 2026, at 07:13, Robert Treat wrote: >>=20 >> On Sat, Jan 3, 2026 at 11:30=E2=80=AFPM Chao Li = wrote: >>> On Jan 2, 2026, at 10:54, Robert Treat wrote: >>> Hi Robert, >>>=20 >>> Thanks you very much for your review. >>>=20 >>>=20 >>> On Thu, Dec 18, 2025 at 2:22=E2=80=AFAM Chao Li = wrote: >>> Hi Hacker, >> >>> 2. In sub-command details section, "ADD COLUMN [ IF NOT EXISTS ]=E2=80= =9D missed =E2=80=9C[]" with =E2=80=9CCOLUMN=E2=80=9D, which is = misleading, because =E2=80=9CCOLUMN=E2=80=9D is actually optional. >>>=20 >>> Seems technically correct and potentially useful, and I see you >>> handled this for the DROP COLUMN variant as well, so I could see a = +1 >>> on this one. >>>=20 >>> Thanks for confirming. >>>=20 >>>=20 >>> 3. For all =E2=80=9Calter column=E2=80=9D sub-commands, "ALTER [ = COLUMN ]=E2=80=9D are omitted, which is also confusing, because none of = other sub-commands omit their prefix part. >>>=20 >>>=20 >>> Hmm... I'm curious what you find confusing about this. Is the >>> confusion in trying to find or understand the information presented, >>> or confusing as to why it isn't all documented the same way? The >>> downside of your "fix" is that this introduces a lot of extra text >>> that is more or less noise, especially for folks trying to skim the >>> documents looking for very specific command references. And while I >>> agree that we aren't 100% consistent on this within the ALTER TABLE >>> subcommands, we use this same mixed pattern of omission on other = pages >>> (see ALTER TYPE for instance). If we were to insist on making this >>> consistent here, I think we'd probably need to look at other pages = as >>> well and evaluate or update them too. I'm not sure that would be an >>> improvement though. >>>=20 >>>=20 >>> The confusion came from my own first-time reading of the = documentation. Since the page is quite long, when I was reading the = action descriptions and wanted to confirm the exact sub-command syntax, = I often had to scroll back up to the syntax section. That led me to = think it might be helpful to include the full sub-command form directly = with the action descriptions. >>>=20 >>> That said, I understand your concern. The change did make the text = longer and added noise. In v2, I=E2=80=99ve therefore reverted that = broader change. As you pointed out, if we were to pursue this kind of = consistency, it would need to be handled across other similar pages as = well, which would be better done as a dedicated and more carefully = scoped patch. >>>=20 >>> So, v2=E2=80=99s scope is significantly reduced, only a fix for my = original point 2 is retained. >>>=20 >>=20 >> Makes sense to me and seems like an improvement, so +1. >>=20 >=20 > Hi Robert, >=20 > Thank you very much for your review. This is the CF entry = https://commitfest.postgresql.org/patch/6328/, you may add you as a = reviewer. And I just changed the status to Ready for Committer. >=20 > Best regards, > -- > Chao Li (Evan) > HighGo Software Co., Ltd. > https://www.highgo.com/ Bump. This is a tiny doc fix. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/