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 1w72y1-004uJ9-0Q for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2026 03:07:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w72xy-000eGF-0H for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2026 03:07:02 +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 1w72xx-000eG7-2Y for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2026 03:07:02 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w72xv-00000001vIs-1c0c for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2026 03:07:01 +0000 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-c73e9e4cdf7so1661926a12.2 for ; Sun, 29 Mar 2026 20:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774840018; x=1775444818; 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=5Mxna+PYNTmt2nBOAzFWyUZKnqCejFtsl2WRyKiHpoU=; b=euH7f4BRHFF9RcFPqShasVkjcqDZpt2rAIXni2xxqZHXqReqJN7cfjYXdE/+UUvTuc w8xj7icZSSqK6v1sxwTGkJvcenfxFEGOd3DqnNbc7vybxkYnIGyRLX5oGKVGnYE14c6z bN5MTRN8FD91ZrztzLkOh+eA4wxw21aw92DPT2MgM7O7Xff+qgNxNhnZdQ+PXKkO4aRN ihEhdCikfPkP0elnsUVJr7VlPJBfIGMygMPNN0xM4YtrsPzyIvHL4onJ7+HQwWglKIAe CuZjJuplqmoAODJudKm5nb9906ocQu/OSHTwRPednek2Q0t+B7nVMXlxYG4hUiIHz2UF k3FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774840018; x=1775444818; 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=5Mxna+PYNTmt2nBOAzFWyUZKnqCejFtsl2WRyKiHpoU=; b=knba52+CeG7lgzFUNh9UKpuaCzcvkLk+XFQd+a7A0bwVXDGbV3NuJajHNRGRrzb8uj etfoMfrFlk8izzB1neGD+D6wNEN7zgZdPG/7nRhDYUWVbUA4Pd9XqjyASp7gp2MkTHqt fV9ZJomWGrXWHkj5jFQWxyX2II/E5lvQ2Ht2UZa6E9EQN1hnJJM0wb5wfTcdIVOoR/Gx y00P4TcaiH8RvF0g9i06HqPM0Dv32lA/EYvSeNDdUVi5dKBP3jfnHEnmuR5dXE4nwSi1 relKo/0Ho5cRVoie3s+2ri5I3Rht3Sm4b/7ihnPwZ7fs4kfnJJ8IkwX+3W9XjTL1TzPC FyCA== X-Forwarded-Encrypted: i=1; AJvYcCVdhG/CAooee4zMzMSBcbyogK0AsHLZaR/eJkS3yuX5fUpWaLbR5YgwVoDKGujLMlCa6MhTsrQwQcFrRYuc@lists.postgresql.org X-Gm-Message-State: AOJu0YyXEco2szrwUrrDYHfSVSYsFfX2K6A1vbY6zUiTlaDNyBaGaWDw Gu5BeLl+aMbobWmmqxPZg/1GH/VYmjTw1se/UKan//KMBEoMwcupHmaM X-Gm-Gg: ATEYQzyVYuD8sFn+Snq60eaUDdj5HKVMxk9sB7l5dkatHZbxtXfW23oC9TEzou/7M+T 1jViTLwrUZqgbLJWYDsbxDuyj3KxqDI3jmIK69rewbbqmXbafq3dfR71yVFQZodTzXq5F9hy4Es yQ/Gj9eY0IdpCycMVBFirUU/Xq6Pthyyg4+70MxCRUI831xb6CEl+EScynexE7PxKAZF2+Kkztv HwzXYzxfM1C2s9kOdnSlOyeM/HP9gj/vUOUGigPChhn9CkFEIyRb76YzdnEQiUOjKS5v0oioAF7 VWYkIQYg1zeUaaPqfKhNjRUBjAYzK1xeHwsoWzoVKLtX3cgzPYg1d7qj1CkrpYMJ/fN9vc2onCW 9M+Kdws2UcC14HtbFTIGsQtZELUYhKVT/KpT+olxhlCz19ckWT6cpottdGGaZFxwiUzjTr9F0WW i16IpREz3eHHDhBcTyE44M8sPpov84QfU= X-Received: by 2002:a17:902:e5cc:b0:2ae:a928:f544 with SMTP id d9443c01a7336-2b0cdd2f564mr116644475ad.45.1774840017833; Sun, 29 Mar 2026 20:06:57 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b2427663acsm61073025ad.46.2026.03.29.20.06.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2026 20:06:57 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: docs: clarify ALTER TABLE behavior on partitioned tables From: Chao Li In-Reply-To: <1852615.1774810890@sss.pgh.pa.us> Date: Mon, 30 Mar 2026 11:06:18 +0800 Cc: "David G. Johnston" , Zsolt Parragi , Postgres hackers , Amit Kapila Content-Transfer-Encoding: quoted-printable Message-Id: References: <90F9169D-135C-45E5-8221-4F79DAED98E2@gmail.com> <46DA7611-C18D-4782-AEFF-F861ECDEFA5C@gmail.com> <245AA9F3-7577-46D6-990C-C308A9F36E82@gmail.com> <1852615.1774810890@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Mar 30, 2026, at 03:01, Tom Lane wrote: >=20 > Chao Li writes: >> PFA v10 - just integrated v9-0002-diff into the patch. >=20 > I do not like this patch *at all*. It removes the documentation > that enunciates the general principles ALTER is following, such as >=20 > - If a table has any descendant tables, it is not permitted to add, > - rename, or change the type of a column in the parent table = without doing > - the same to the descendants. This ensures that the descendants = always > - have columns matching the parent. Similarly, a = CHECK >=20 > and replaces that with highly repetitive, explanation-free > statements like "Specifying ONLY is not allowed" > for each option. I don't see how this set of changes is an = improvement. > It's also close to unreviewable, since it's so hard to see whether > those statements have been attached to all and only the proper > options. >=20 > If there's mistakes in the existing text, by all means let's fix > them. But this doesn't seem like the way to go about it. >=20 > By the by, I believe that our general project style is to leave a > blank line between units. So I also don't approve of the > patch making a concerted effort to remove a lot of those blank > lines, especially when it's doing that to just one file. >=20 > regards, tom lane Hi Tom, Thanks for your comments. The main goal of this patch is to clarify how ALTER TABLE sub-commands = behave on partitioned tables, since the current behavior is not always = consistent or easy to predict. Because of that, some per-subcommand = verification is probably unavoidable. But I agree the current patch may = make that harder than it should be. I also was not aware of the blank-line style convention. In any case, = that part is easy to fix. I=E2=80=99ll rework the patch to better address your concerns. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/