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 1vSOCA-00DW82-1D for pgsql-hackers@arkaria.postgresql.org; Sun, 07 Dec 2025 23:29:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vSOC8-00E8tJ-28 for pgsql-hackers@arkaria.postgresql.org; Sun, 07 Dec 2025 23:29: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 1vSOC7-00E8tB-2V for pgsql-hackers@lists.postgresql.org; Sun, 07 Dec 2025 23:29:36 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vSOC5-003f2G-0j for pgsql-hackers@postgresql.org; Sun, 07 Dec 2025 23:29:34 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 379B8EC055A; Sun, 7 Dec 2025 18:29:32 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Sun, 07 Dec 2025 18:29:32 -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=fm1; t=1765150172; x=1765236572; bh=n47XaELb1m 6BRPvKLqOV+tAKiq4i2Nx7KvVuE8aRJic=; b=h6mVUZkoJ4Nf9E9HxPfNYD2uOT LbypEh882oR/+7Ylsx2C8JtkZ3AHNv8BNPYINj9IuK9wDIiill1eCRpe9Sm05Xgy Hz4cqpevcaD34hiXlbnTpOKHN8UCR9mOn5RAK/hQ3RYK3BVHpA9SQw9He9vCcpcz uAukQfJVFTZAxYgey9HTUKiQQIaiPYwbLxhZ1kPpgRFrdvriTbLTGM0kC5hNJHLk YypMoutAU3BdKQOySp3uJ5txOq1t0qNE/ojWrJTS/laEiAXWi/u0/D52OIv/4IhG NgpTJ9ggiHwmKhDGYcyMCFcWK9mwFpAhYnyzbHA2Fujgitbrl/MjjA+NN6og== 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=fm1; t= 1765150172; x=1765236572; bh=n47XaELb1m6BRPvKLqOV+tAKiq4i2Nx7KvV uE8aRJic=; b=iYNlvUdgG+3d4Hu1uuFmrIQNwgf1uR3b7/IdHD7r9IpKXTSkCB+ hiazDZ6JDDQUC2mFH94XFIJJyZlgg+dOLPGq/keZceD3WWfyrWg4IB9XHirLWUx9 LvsmOoaZImrmB8vBuDDaAYYcte6+Ow6708DLNrcZs2owXfxXWS1cYZJbBPR68Q22 sX1Khtdhb88jbdf/aQzhv4xbQ9d09XTeRI22rcNoWx2ukZIlHFVRCUCY7uS1M8m0 DNdx2REaZBTQ6GpOxrNj7DypNbrh1QQabljmDzPdLvFk/mx9I7lmS+XGboj1oEPm 0Wgx0yTaDfv+zVVyZsWlUhp13BZ3Gs8ctSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduheduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtroertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudelheeghfekfefgfedthfekuddt vdfhudekgeegheeikefflefhleekheetfeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrlhhvhh gvrhhrvgeskhhurhhilhgvmhhurdguvgdprhgtphhtthhopehmihhhrghilhhnihhkrghl rgihvghusehgmhgrihhlrdgtohhmpdhrtghpthhtohepvgigtghluhhsihhonhesghhmrg hilhdrtghomhdprhgtphhtthhopehnohgrhheslhgvrggusghorghtrdgtohhmpdhrtghp thhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 7 Dec 2025 18:29:30 -0500 (EST) Date: Mon, 8 Dec 2025 08:29:12 +0900 From: Michael Paquier To: =?iso-8859-1?Q?=C1lvaro?= Herrera Cc: Mihail Nikalayeu , Alexander Lakhin , Noah Misch , PostgreSQL Hackers Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY Message-ID: References: <202512072050.hcyysny65ugj@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AMYYrbmPTfkxErRH" Content-Disposition: inline In-Reply-To: <202512072050.hcyysny65ugj@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --AMYYrbmPTfkxErRH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 07, 2025 at 10:07:45PM +0100, Alvaro Herrera wrote: > Hmm, as I recall it's quite intentional that the index on a partitioned > table is marked !indisvalid; such indexes are only supposed to be marked > valid once indexes on all partitions have been attached. As I recall, > if you remove that prohibition, some pg_dump scenarios fail. Right. If indisvalid is true on a partitioned table, then we are sure that all its partitions have valid indexes. If indisvalid is false, some of its partitions may have an invalid index. In the false case, things can be a bit lossy as well. For example, an ALTER TABLE ONLY could switch a partition's indisvalid to be true, without switching to true the indisvalid of its partitioned table. -- Michael --AMYYrbmPTfkxErRH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmk2DcgACgkQnvQgOdby QH3Q4g//ecR9chmVNxBHzgYfmOqVDSnP/g0Z2fEOXPm7gCaye3IwjGhvbhzDqT3R UJVtKjzYU3NI6Sg8PuxabhQUsNWtvcQ9NfWc3kpb5Z/pf+QrUerJb331kLTUYvQR Od/+m4fyhId/BtVjzVuRaBWVbocg46JUJotVva59CcE1Mo+I4+eYcBawWvfpvGGF uwEouwg3ZQe9gpED+LQUcRudWYmsfbE43WiQ6MI0510P6uTwX2wO/JEjhqQnY1uA WEzb3f6MV85R65KjMMOkHq1spM/m+B1y0sombMxUoYYwvMlkC60/B2vLxmD8y6Of Q7AkJWYSHku97Xxf5+6cpMsRxG71mQxOjNTd2ttySxVFwKEMnlOfczwskPLXuy6o EmTaPOkwoaHdsr2aKPXn9wsu0N0tnHpLNYTVVP8UDWxwZszipzT6DpNZiadW/l3+ 8mWrEgFKaKRXJWxaT1W3/zRcJ9Psf+yns1LJHNS3sX+bDkaE1eUl4MI6Z2p4aRZ6 gWpr1ET1pIaZ7lh5XHuGF96idh+Rpd+H859nysT61ju4Z+8LmlFV0J6781SaDwdR 9e9VmlLui/gyyQFugRHwDELQU5eyGKYSz35rWtyllskU9gL0jYEmHCM3iCfh2Bdc M5AVjrbMJb7rIpNM3Q33JclzKXTKv3IOF5tISAq3LsBiGMFmjRs= =hvtc -----END PGP SIGNATURE----- --AMYYrbmPTfkxErRH--