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 1vdcis-002shL-0P for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jan 2026 23:13:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdciq-00G7uO-2k for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jan 2026 23:13:49 +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 1vdciq-00G7uG-1Q for pgsql-hackers@lists.postgresql.org; Wed, 07 Jan 2026 23:13:49 +0000 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdcio-005AJB-1y for pgsql-hackers@lists.postgresql.org; Wed, 07 Jan 2026 23:13:48 +0000 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-78fcb465733so29392677b3.3 for ; Wed, 07 Jan 2026 15:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xzilla-net.20230601.gappssmtp.com; s=20230601; t=1767827625; x=1768432425; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=948AJlK61rxb9RD5f5Y+CU2vvWUKDkCu2P4whm4icfY=; b=vRJv42Tsgkl6+AZGleaPQwdP109TTxN7oxHTVJUo06oCq2gqG4SVxetGOIgkjfLHes /t+9IATPkeVzlnI2A3+JiqewUnTniH8Hj5oFCD/SAcqNxm7IOz2Sxh1fHihtF7bGc0ht ub4flIY9NcEZxJ0evGagRK7eFyb+Rr9OCs+2hrOuZ/QvlwY9aBlJJp7bs2K6fqEki86P wBH0B8lOCjiFZFr1MpapcyKr/LFjfFuKsiLBurQDsfV/3+tNrQaRfZE37PRFxS6TMZBS awQikEAtm0Xezn7urm/jbwbcUmlMO4hI/qbVZRUIry0rg6DIDfvedMvF8nSvoVVYf0Us 6JRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767827625; x=1768432425; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=948AJlK61rxb9RD5f5Y+CU2vvWUKDkCu2P4whm4icfY=; b=wPcWbZ15EZEojZH1i3Hyz3CE/VrR3ItEUixEs2b/oY6kaAztZtcdt2y58VKfglu/+I 2qH+0hKGbIqWkX9PbZiWL6tKTwY9jkm1vQt8ptjpuo8bMlHQ5EhUs5zq4NQSOsYnPWME tuneNbGt4JJ9PPXFrs1Gaep9KDrtBVFj6+4WxotqSUp7iWPBBTrs+WFDuK2HGFXwsa5q TDf0CFx9+RfEJ9J5mielbFijo/HahtpVE3PwOV+RTqING81M+FId9eNYbMoMLbYFHF9f bP74EkeepEwPki/cTQYcbaf5dPbU44CeDXqYBpZ8YdFxR8ybIt0IMJYoLS1dr/j/eKBt PySA== X-Gm-Message-State: AOJu0Yz0NiGSaOf3EVrOSmCQ2cNG7seatb/EBB7BKxGqP/Ly2FTkvSR+ gwJqhsf3FEPQajFBrWgAmxCVi/mVNABswdIXU6pxbbQreWlBpxu2IwvXEo8MSMdMy3byvox5FpN ZykAfJoEiLxiL2llPOlPuIG2txOgnTCw1pq0uVKmZTg== X-Gm-Gg: AY/fxX4jL7fvrHy4t9zsXZO5eu7h3ssef+8A2i0RLsdFZEiuC2fRkkK7sB4quIeGpHP FV1c2jFayrfo1Tw+58ObSqclMxsBG+BGELMmfpmAxzVtNqt0SgGjpHusVIf0jlGK/iqii10BIjl UIMsMjH/kZpi4tYC0FxnbTCd6Li0SqXzmBj5EJTA1BZh+cKnuPH+Inkpdxoz1sBWyKXH7g4fv0W EucE6BvSFLtDV42QNsDBgaffFvavIjXvEYsXCeTlI0JKQ6FAeBCPHS+U7vozYvY4tYesfE= X-Google-Smtp-Source: AGHT+IGELMjuo4Bf7CvMlN6GLnKa5eU2IFpSitNQ/bA2KcYdot39dMEai/6CgMYBJiKMqdzWwajZmKuum+bVM5WYHlg= X-Received: by 2002:a05:690e:4195:b0:63f:a7dc:159e with SMTP id 956f58d0204a3-64716bda8b9mr3831171d50.29.1767827625186; Wed, 07 Jan 2026 15:13:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Robert Treat Date: Wed, 7 Jan 2026 18:13:33 -0500 X-Gm-Features: AQt7F2rRARaCfImoTiBlYS25mkwAKbh-3d6FfNZpw6d4ahOFbg3lNeybKU21s9M Message-ID: Subject: Re: DOC: fixes multiple errors in alter table doc To: Chao Li Cc: Postgres hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Jan 3, 2026 at 11:30=E2=80=AFPM Chao Li wr= ote: > On Jan 2, 2026, at 10:54, Robert Treat wrote: > Hi Robert, > > Thanks you very much for your review. > > > 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, be= cause =E2=80=9CCOLUMN=E2=80=9D is actually optional. > > 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. > > Thanks for confirming. > > > 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-c= ommands omit their prefix part. > > > 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. > > > The confusion came from my own first-time reading of the documentation. S= ince 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 incl= ude the full sub-command form directly with the action descriptions. > > 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 chang= e. As you pointed out, if we were to pursue this kind of consistency, it wo= uld need to be handled across other similar pages as well, which would be b= etter done as a dedicated and more carefully scoped patch. > > So, v2=E2=80=99s scope is significantly reduced, only a fix for my origin= al point 2 is retained. > Makes sense to me and seems like an improvement, so +1. Robert Treat https://xzilla.net