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 1vjBzK-00AIfI-2l for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Jan 2026 07:53: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 1vjBzJ-00GdeI-2g for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Jan 2026 07:53:50 +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 1vjBzJ-00Gde9-1S for pgsql-hackers@lists.postgresql.org; Fri, 23 Jan 2026 07:53:49 +0000 Received: from mail-dy1-x132a.google.com ([2607:f8b0:4864:20::132a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vjBzH-000000003vP-0Hhc for pgsql-hackers@lists.postgresql.org; Fri, 23 Jan 2026 07:53:49 +0000 Received: by mail-dy1-x132a.google.com with SMTP id 5a478bee46e88-2b6fd5bec41so4696083eec.1 for ; Thu, 22 Jan 2026 23:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769154824; x=1769759624; 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=ufMFGgrmw0d074NgpMep40pwi6/XG8Nn7arcmfMwLqc=; b=K/1exnWazncr3rPMhYYDz+lPPtTP3nAEnS5iqULgnm6ZfduV1E5/omG2l3RFIgYL1a 4KBSLBQqI++7QrdFIG1gI/QwKNEPAjEIof36rU35wuYO3axBUqf0aNZvPFV36UkjBJvx /O1j0AEozjVgt8SHD98LvHjQDKqXxjcfmyWwjBtqlXWnmt2MXHO0CF2xzp9/dMY4qJqh ABLdm52o7lX31V/53VJnYmGhzBd7unKg9MAPtUWdXodFu2DZc8dW/DklV3zdXmlz8To0 nQHFuJjnEtSU618KleQgbCva2zWX0LNMkHoHzS9Yrc7SdqBwLO4D3h5VvCrzjBMA2eIS VHzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769154824; x=1769759624; 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=ufMFGgrmw0d074NgpMep40pwi6/XG8Nn7arcmfMwLqc=; b=lbZiV0jQo6WOCfB0E6l9b6XtCHaCuld7cOisjONoBn1Xeo/e/gA1j26bEFoh6C88fP oh360oXKGqEIY7kr9+X09IwHiT4DC/xGJAkLUv+i8Ks0gq5jsa9mBWVpxIgFJ6FOPyCl uNKVVXXq+6+hnAC+a+vVZeF43sAv0Z8+uWc0gmpmO6EDSfP0KX8jT8L+ysqI71lvmcjb aNOd7PsItnQ2F4TNsbTPtsN0hjuchQS5EYdwXpyIaGFslQfrbPIQbSUfiTbjgOXWT6+P KeoSF5yEmX4fvnZEm3fXcsW+LTImqb9viSicKCWhQ1owiwPDloImAtWXtifJ3qw9Efqq ar5A== X-Gm-Message-State: AOJu0Yw4bvpvJsYlQLef2lDCNPcJHDWHBA0azavL8Wepn2lut1lJTZl0 8r8gW2DKXRUKMWaQ4dqc92+MzvBG2zCl4tKl1wGtMn4km2mTb1qnNMMf X-Gm-Gg: AZuq6aKkW9bfY1kkHxk3rN1qyah16Eef95Suvs/r3ghgoN6UTFfnAl8VePQGpVNq51k GmEtYf79KsGU1C6eHpBlWcbdgsz8FCXD8Qup4t71Hi+neV1y/yJU8wbHj4JJosN/6Lh4DOD+eLk hB/R9lRiYBDf5zaYXuR2NpDedjs2PtDWpzejZXIiImDhahVQpOSjVrazFTT2Ty57IsQjPDzz0Ul yIrTGSQw4XvxLlfxVsvENaydRPefdX1G8Ag2XfX4QkVT8vocf7pJXzM0fyiwbv1o6xHNt5SDhv8 uuGBxXGAJllROCHI6kiL4ACBDu/tGMQFnf0YhzCjnYzw+kNka5zVbgZ6wC7miS+4yAlE5QMe/P2 nSBagg5XDGZ8E8S84hle/l29IiAc4L2d0tnjeCr3EFgD28QWjrtlEYmNUJGvogjT1aZIM+gXZ4Y iUxsOFvjJeXSNYV8tjUDJF X-Received: by 2002:a05:7300:324c:b0:2b7:1b54:6081 with SMTP id 5a478bee46e88-2b74278d406mr204377eec.11.1769154823675; Thu, 22 Jan 2026 23:53:43 -0800 (PST) Received: from smtpclient.apple ([196.247.24.158]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b73a6c47d5sm2134514eec.10.2026.01.22.23.53.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2026 23:53:43 -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: tablecmds: reject CLUSTER ON for partitioned tables earlier From: Chao Li In-Reply-To: Date: Fri, 23 Jan 2026 15:53:06 +0800 Cc: Postgres hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <07773235-2E94-478F-BEF6-38C73B0553B8@gmail.com> To: Zsolt Parragi 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 23, 2026, at 15:43, Zsolt Parragi = wrote: >=20 > Hello! >=20 > A simple patch and generally looks good, I only have a few = observations. >=20 >> =E2=80=9CALTER TABLE =E2=80=A6 CLUSTER ON=E2=80=9D and "SET WITHOUT = CLUSTER" are not supported for >> partitioned tables, but currently ATPrepCmd() allows them through and = they >> only fail later at execution time. >=20 > Looking at the ALTER TABLE documentation, for other options there is a > mention like "This form is not currently supported on partitioned > tables." / "This form is not supported for partitioned tables." >=20 > I don't see this mentioned for CLUSTER or INHERIT. Maybe it would be > better to also mention this in the documentation? >=20 Hi Zsolt, Thank you very much for your review. I have the other patch for the documentation update, see [1], that is an = overall clarification for alter table behaviors against partition = tables. Actually, I just found this issue while working on that patch. I will handle rest of your comments soon. [1] = https://www.postgresql.org/message-id/CAEoWx2%3DmYhCfsnHaN96Qqwq5b0GVS2YgO= 3zpVqPPRd_iO52wRw%40mail.gmail.com Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/