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 1vxHZb-006aAo-0q for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Mar 2026 04:41: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 1vxHZZ-004cAl-1c for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Mar 2026 04:41:29 +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 1vxHZZ-004cAd-01 for pgsql-hackers@lists.postgresql.org; Tue, 03 Mar 2026 04:41:29 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vxHZW-000000007g3-2u30 for pgsql-hackers@lists.postgresql.org; Tue, 03 Mar 2026 04:41:28 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-79827d28fc4so47521377b3.1 for ; Mon, 02 Mar 2026 20:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772512886; cv=none; d=google.com; s=arc-20240605; b=jG1rEpvPDaFcQmHsGdvIE3Bq/SaJcDT3Jiis1xxVvI+VqFUSRuSY510lQz21jNoggZ MSHjM/xa/ebBnlT8nHa3E5xUk2vvab+BulyXpZG76lDu68IxB9fDp4nGHKvIhDwrf+1W lIV8UWCMFlgK0Vr5NpxvMeWf2XD8J1pheUgtx+so8tSzk+HMGEEHk6tPnhDhcVH3yk8x vXpDGWzUC3I7CP1HcBiv7GT95zGt0Es+bevR+ISFpabu78EebakZ5AYysrLBK62W2RLV XgdwPYpCSEt529bv9EQNg7NOtdMHpvfIGDoUtUD5IfrRFO7yQX46vUbm1oTQkE/yoTxN AVTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EeczI/SdLEKUoPQDYpUPsTNJYCxT3veQ8rASYSS2Oq4=; fh=JTJ8it54pztbAqFA9IUxT9EmyfYtfHsquFCj4w/01Y8=; b=BZD4fIGe1xTZRAJ5iRV+QWgWnb/4L88P9tU33ZMqUNW6mdcMywyCK0LSp0TZthEuKa WxS7948uHd3FTLUtmg0tD7/pJdbbCc4vN6Qz2/1BNgUL/TLNC4SfAfsqfZgoxfvcw5Sj UDddp09hsl6yZCMTAuCLW/Zdvhu//+/6+hhEH4cw/fe3ZqszUSR2PL9JdAtqlwxxFmgb t1Xy7pIS/PO1dADVoz/thy33Wa5XqgnXGqdwX8dz8evxqKy1cCfo5CcclS7XOjgLU6ok qjD/BSorGe9Z2HyGiuCwvLbYx3cWC8+AbdsVlvTi9AUus/lc0kYYg7iRvsyrfBNDrHBQ HdZg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xzilla-net.20230601.gappssmtp.com; s=20230601; t=1772512886; x=1773117686; 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=EeczI/SdLEKUoPQDYpUPsTNJYCxT3veQ8rASYSS2Oq4=; b=AudiCWG24x8zQoGIp6k9l2Owohpktq62jeNkBaFLsZDODfuW0Ry+SF+VfiL6FjQzXz or10OGeINkG0KxAHvhyjGu4/i2J7Wwaq8oavVNrOMH0xBAAl2+ySGT2hBlaGYlpxljsC UzBfgmCh9J1SJ04sC8GEqoV/64rUNXhCd21orPRzdI7Xdj2vDZnw1j3cO+hsCWYA5kaO OImqiB8xngxiPdsqLScGd5FuoWaI2CeBc2XIRahhuE4BdHZ38XCaqunkO4csu5AwWCe2 ytVwnHUSVNIk7HJkRJctUYZrma63zJU/STC8oM/b2HaqlMAi5A4vuakaEMA500ivZ2GY +I1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772512886; x=1773117686; 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=EeczI/SdLEKUoPQDYpUPsTNJYCxT3veQ8rASYSS2Oq4=; b=eFRbGrr/Tum7i10vYkccsnvh9XJVKkEuYX7vq6LQQY6tY10irZ0009Qyb3kZxzSzVF GKvVFRAWwA4/EMCwtqLq/rDB50yPXFwSsEUwAa9NhbfaGz/Y4dfa8qMlxmpl2DCWg9iV Ok6Vz+j/hjDaBuoxwIdLemOAF8zsx6qckmnDwIfpmWTdGSJoulOVuCJF+sYCMl5atDx3 vhasK6oAFffrpKm8AieDhDD7s+/F6+fg6EsUeS6f+LOr+X9NCozVOoK0y+5xEAGhd6HD 6cXHv82Epc8VPGUQmiX4hOkJKeGF8A6KIPISEDLFyeKfru64Who1T/ptOWpRyCD6jgoN vg6Q== X-Forwarded-Encrypted: i=1; AJvYcCU3p/CdAW5iTe3XDjaibV1nSRs4WMzGYDjH5xN+UtpJcG2V4mviBCbkhLgKCjs/b7HvUccqtnUyIUYQlO1z@lists.postgresql.org X-Gm-Message-State: AOJu0YweCYUM5A84VNbn1DmR4ngB8oz6+DP2I02ycjhxh3R/ICXhhYo9 pABAN+LTcIiuSo/JwpyS1jpHisg6OMDh0YFRBeNGey+ZyBXJwRSeEAvc2jDHjTsKbxxlysfKs3d D/E3XC8Dzlhyz+S8bS5J7kP/PQ+hhVkBKuyHvIFLZuQ== X-Gm-Gg: ATEYQzz4yckB0vqjM268kWAK3t2pWs1d+l7+mvjUm8+TeYuwqvjEab9JvXV+V3W12LE cnuFx0xcgndfZya8WjiJPnwpfthLf68ZxgoyziuqViriQG+lyxaHs4g2Kby0fHG7s75/eDorCS0 4//t+6uYuGzvYnNwBEQC0LvL1UcnwB5BDtoSpPktSsYMh4gO+x0CK/znm7tnDV4pdIDYoxDYuY0 qt9gloFhGDZBhwChcT1mH2oy20QYqZ/pQgpBMO+md86NEYkzebn1ZEXWafElHPeKqQvSnULkWlx UP7NEj4= X-Received: by 2002:a05:690c:10d:b0:798:95ff:b090 with SMTP id 00721157ae682-79895ffb3fdmr84788037b3.59.1772512885772; Mon, 02 Mar 2026 20:41:25 -0800 (PST) MIME-Version: 1.0 References: <7D4CB5FF-6599-4157-A9E3-7B5E2CB96CEE@gmail.com> <86974902-199B-413E-B4DA-9A484AB3A119@gmail.com> <8F0F27C6-2267-4382-B4B7-C526B2950175@gmail.com> In-Reply-To: <8F0F27C6-2267-4382-B4B7-C526B2950175@gmail.com> From: Robert Treat Date: Mon, 2 Mar 2026 23:41:13 -0500 X-Gm-Features: AaiRm53oAUQv--6c0fgJAUj4kSdXNKKWXVmvreewSxJ2v0w5Cz0yXPpRihembo0 Message-ID: Subject: Re: DOC: fixes multiple errors in alter table doc To: Chao Li Cc: Fujii Masao , 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 Mon, Mar 2, 2026 at 9:09=E2=80=AFPM Chao Li wro= te: > > On Mar 2, 2026, at 17:22, Chao Li wrote: > >> On Mar 2, 2026, at 17:04, Fujii Masao wrote: > >> On Thu, Jan 22, 2026 at 6:38=E2=80=AFPM Chao Li wrote: > >>> PFA v3: Rebased, and added reviewer and discussion information. > >> > >> LGTM. > >> > >> Should we apply the same change to the ALTER FOREIGN TABLE docs as wel= l? > > > > Sure, I can make the change. > > > >> > >> While reviewing that section, I noticed that ADD COLUMN IF NOT EXISTS = appears > >> to work for ALTER FOREIGN TABLE, but it isn't documented. I'm not sure= why > >> it was left out, but perhaps we should document it and add a regressio= n test in > >> a separate patch? > >> > > > > I will verify that, then update the doc and regression test accordingly= . > > > > Best regards, > > -- > > Chao Li (Evan) > > HighGo Software Co., Ltd. > > https://www.highgo.com/ > > > > PFA v4: > > 0001 - alter table related changes > > * Add test cases for omitting COLUMN of ALTER TABLE ADD/DROP [COLUMN] > * Add a test case for ADD COLUMN IF NOT EXIST (already had DROP COLUMN I= F EXIST) > > 0002 - alter foreign table related changes > > * doc: Add IF NOT EXSTS for ADD COLUMN > * doc: Mark COLUMN as optional for ADD/DROP COLUMN in the same way as 00= 01 > * Add test cases for omitting COLUMN of ALTER FOREIGN TABLE ADD/DROP [CO= LUMN] > * Add a test cases for for ADD COLUMN IF NOT EXIST > * Add a test cases for for DROP COLUMN IF EXIST > LGTM, although I was curious why you went with c12 vs c11 in +ALTER FOREIGN TABLE ft1 ADD c12 integer; -- omit COLUMN or maybe that should be changed? Robert Treat https://xzilla.net