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 1vdezq-003Ee7-0v for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jan 2026 01:39:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdezp-00GkUW-0I for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jan 2026 01:39:29 +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 1vdezo-00GkUO-2Z for pgsql-hackers@lists.postgresql.org; Thu, 08 Jan 2026 01:39:29 +0000 Received: from mail-dl1-x1234.google.com ([2607:f8b0:4864:20::1234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdezm-005BZQ-2q for pgsql-hackers@lists.postgresql.org; Thu, 08 Jan 2026 01:39:29 +0000 Received: by mail-dl1-x1234.google.com with SMTP id a92af1059eb24-11dd2370722so4536900c88.1 for ; Wed, 07 Jan 2026 17:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767836365; x=1768441165; 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=x4TNQL2k5Qyw3oSOQPVZt97FM12Wii7HQwl371euSfo=; b=Je/hycIk2wd0MXz80lnzM+MAdqHp01Gi/bWemVQI35zZxTqwvkMr33EtRm5PZ7HpXq zdmAY1GKc50zn0UlOyAYxnY3igAKD6COtQ/e2zHxB6z04dFQ8f5slJzbYHNcoJ+GGuOu ar8dB0NtzHXgqJhsvgBcvmGBMHUIKeON3qLl1FuWKJzPx6JkyLQy7KRFwM2sfcHZaUei RTADOzDmxeAq0Xjf/pdXMwo6Gj5Df/j6JT3cPoEULM/hEyu1B8RGrvV1AKbUIPU2ulRX lZG2fGxyZGRRDTjwYJOQ/K98MKD+jDOCRxmHPoC9XMmkJ8y9okYx8bxJ2+7i3gVe8Qoq J8SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767836365; x=1768441165; 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=x4TNQL2k5Qyw3oSOQPVZt97FM12Wii7HQwl371euSfo=; b=o1WQk5N33cDUPn55aJCF+i51sPnii+QBy1H4APa0nwiMpStqu1fHslKzP5L2stJtoR oUfaIqYopV9lzNabPN/hSM9IlmE9jCfQuSBmFstBUExBGDwGPfaZCVa7uR2iesNZoeXH aI/b9hiq1HnWIf43Y2LcsL4cZ14uz7QrBgK9roB/X3AoAqoIoNfnXndI01LzrljOXNVA M4H2TfR6Ug2QN2xLdVOnUXt+NmMvCHoyWlv+5MfJZaTFM8JH9V5p5AOGaka0NfG581Nk e/3hekmGu/k5DTHdV0kIb3lz0jMcVJpXcl1YXcqw8GhrxWNV8DbDMjewpqta8VwC23J7 xIUA== X-Gm-Message-State: AOJu0YyDcBd2vs0c2RudWEpI731rrYIkjjZPCjRxPCDvMTJckOgwe4R+ w+tc2ycU7tR211vBaDNqCNdiunAjJQTXqvYIF4wtQfnkUYQFa3VwxXBy1vCn5MQYWWE= X-Gm-Gg: AY/fxX7z7p2KJZJQKTXVx86W0Zyic0u7AO57RaQJTo1WP09DlI4Im2DgCLe9/CQO9Oz k1s1E9fjZWoMvdFsfWgfwDCfmX8GuzHqY1r4OKtkwkiCI9/qpAmgJLOXELi/KUqDvnFqJu0LiBB Z4/Nzbe9f4fnmm7wpoGhq+YnbgsO4s51qhLnG5VUv/EmjPdMf1lSY/+9CXJYTV1kaZCUXnFdfwI qk1FJ+XPkMwNuFtVPFi5ws4j3Zc6TzDCQSq6yWSck52WUuia41dNkgoQlRsSgoOcJ+A0FScxjDF 307jx/splLbbl4KWHAExn/qfIBk9JbzP7GuAmQP+msOqg4fMKRd4BZJ8e4nCVD8PiGnAf40DOm8 4wPijjuORMLagFmSq4Cy3azLJGJmtj0XWmwzkvmW/qedb1906ATA28Q9+oP4bzi2fmf2V+RavmL ejZ2xwes8BAh7KZgOTHkoT X-Google-Smtp-Source: AGHT+IG2u6gIpCksEJXCdSF30ZtTkmaP+B2hvPzG9ieygE65zmW38CCeE7veFXVe2SdXzaURtAZ3AQ== X-Received: by 2002:a05:7022:698f:b0:11e:353:57af with SMTP id a92af1059eb24-121f8b738d0mr4625787c88.49.1767836364598; Wed, 07 Jan 2026 17:39:24 -0800 (PST) Received: from smtpclient.apple ([142.171.105.12]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b1707b16e4sm7843590eec.26.2026.01.07.17.39.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jan 2026 17:39:24 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: DOC: fixes multiple errors in alter table doc From: Chao Li In-Reply-To: Date: Thu, 8 Jan 2026 09:38:48 +0800 Cc: Postgres hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Robert Treat 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 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 Hi Robert, 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. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/