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 1vkdoS-000V4i-2d for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Jan 2026 07:48:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkdoR-00Cdek-2y for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Jan 2026 07:48:36 +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 1vkdoR-00Cdec-20 for pgsql-hackers@lists.postgresql.org; Tue, 27 Jan 2026 07:48:35 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkdoP-002WqL-1E for pgsql-hackers@lists.postgresql.org; Tue, 27 Jan 2026 07:48:35 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 2385AEC0259; Tue, 27 Jan 2026 02:48:33 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 27 Jan 2026 02:48:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1769500113; x=1769586513; bh=3t4rORppZj AQQwTYpIgKCy7GlH31j6izKAmY3nFMu60=; b=fkyLWnSyWrPrMN0ar+1EZEUAJ1 3OD9Gn9yn6P6sfuyfzRPSypHUijRn5ttCdzcHa0DoTioeRA4xenpluHNfXJpqwcB cahb7c/Xogc29ap6eb7MTGMafUvTlNJUPtHpm72aeorMfpif3GgSCERVuYuzdTvq 6Fad0EcldyxF8cjGbMuVWsXiNZG90XDJEUFIwfJn3Zqhy++Wx587U0K2a5AL8ePr WlKeq+k8SPWhBtsR7AjhgqSi9Ddnwd8z6oZvBtSBnAdxBxvACwDqfl6qVXggYiy8 8441eXCEJeCXpWlKoss3plKiBDurKLSIZochce2XmJ2K8lFc+MWQOaK0p3FA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1769500113; x=1769586513; bh=3t4rORppZjAQQwTYpIgKCy7GlH31j6izKAm Y3nFMu60=; b=hxdakFGHYSPbFDjCRityEmJJyzSod01kQpbPPqRUoMQ4Uj87dA8 GYw/yj2WXqJsRE3xZ2VODmuciT8AXACzkOSkNwyQH96zFks+tzYS3r4lN51UKElo eS2KWAKMsmHsX3SVCxt2lEbkiEMMnlTGsQlufqRPmEQFzOYvaxUgG3Mwxanlqqjk DFiFIF/HCgfRRxd+wUvwmtxoVs57PrJvnQmNJD5fNHY5w1xy8azGN++8xz7RDnAT uM79EO4tKluBTf+vXzFAyKGZIXSq89w5Ml3QQT0xaj3NXDCeoTFoxPXsZbBIXM4k oUc6tXMdgi29gxn5JLVpiW6+0BflZ1Jm8/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduheelleejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeffjeevgfevuddvjedtvddtieej heduueelvddufedtgfefjedvkeevkeeivddvnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthhopeefpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopehlihdrvghvrghnrdgthhgrohesghhm rghilhdrtghomhdprhgtphhtthhopeiishholhhtrdhprghrrhgrghhisehpvghrtghonh grrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphho shhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Jan 2026 02:48:31 -0500 (EST) Date: Tue, 27 Jan 2026 16:48:27 +0900 From: Michael Paquier To: Chao Li Cc: Zsolt Parragi , Postgres hackers Subject: Re: tablecmds: reject CLUSTER ON for partitioned tables earlier Message-ID: References: <07773235-2E94-478F-BEF6-38C73B0553B8@gmail.com> <16D5D52A-1B99-4371-982E-257C195D2924@gmail.com> <5244008D-79E1-484B-9407-21F5D388EC7F@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ebEiKKCdGbcsU4Ra" Content-Disposition: inline In-Reply-To: <5244008D-79E1-484B-9407-21F5D388EC7F@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --ebEiKKCdGbcsU4Ra Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 27, 2026 at 07:13:04AM +0800, Chao Li wrote: > I added two new test cases in 0002 that trigger the check. >=20 > BTW, this is the CF entry: > https://commitfest.postgresql.org/patch/6415/. You may mark yourself > as a reviewer, and once you consider the patch is ready to go, would > you mind change the status to Ready For Committer?=20 There is more to this set of changes than it looks at first sight. Hence, one question about 0001: can the previous error path in mark_index_clustered() be reached through a different mean than ALTER TABLE? If yes, we should have a test for it. If no, it could be switched to an elog(ERROR) or an assertion. The code paths leading to the previous error should be analyzed further. -- Michael --ebEiKKCdGbcsU4Ra Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAml4bcsACgkQnvQgOdby QH1wCQ/9GYGKAOd3OuyC0Ae6jPPpfr0xvCiUlnkNR0hq5Lavcy35pLyG29933+nM gi2LMUCnoM8nfnI9wFHFPOWF+KY1rcwkkj5thpWsdnTynun0+/cXVYrXdDpdxaBs HmF/bHsx2/tTSTp0hYU23hpD7wKo3h4atLhk3dNNZfyAPKb3eo2w3iCKTnihPohc yLqL8u0ypRMOtAjPtnYrS4EqmSF7BEEoB1mEuxDBje9WaYY35J4IE6mukqGUX8V3 zC5UaY5Un4eVxfr6gtSEcCGu1k8CHKoaHrYnFoFgj+AdL+i8mnY9yJ43ZX33GEXg eAgsAuE6oUqIDgWca/cyy3rbJ6kWhwGMvvQ14glHie5zWLYQZHMtM9B4F3Y515ht iqe9/YexrujLvlqQ1PKAtzaInLVG4Jlr0FMUP/df57X75eX26XRTC21659IYa5BC F11EkzwkGoga+UOdam+I9I48SBsFg3I7OF19leQOLeMSbAgpiq9VGd9YGAWS25LV vFB2IrMw791LZodGDG0ZkJ4hyrq8gr8SR+wonbOUjFKBYnL/LtK28SehqeOdsTMP P995RLTURqIV2wE/EdvICzwsyfyXhP/xPwh7ASyDr0oUUAv2THi0o5DAJUvcNs5i c61uhDT24j72oB4328+xaTgHtFKREDwnIsse9Gyf95J5kYThLdw= =3hi5 -----END PGP SIGNATURE----- --ebEiKKCdGbcsU4Ra--