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 1vNx7M-002qcT-1O for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Nov 2025 17:46:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNx7K-00AUC8-2k for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Nov 2025 17:46:19 +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 1vNx6i-00AQE5-1r for pgsql-hackers@lists.postgresql.org; Tue, 25 Nov 2025 17:45:41 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vNx6f-001QoE-2i for pgsql-hackers@postgresql.org; Tue, 25 Nov 2025 17:45:40 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id DBB6C140021D; Tue, 25 Nov 2025 12:45:37 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Tue, 25 Nov 2025 12:45:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1764092737; x= 1764179137; bh=c/XTxWIKDwvt7kZH4toWsOBSgqGj77A9B1YzYofAa3Q=; b=E YJaAzrvWsCOBnAb8llwAliomukaRN5VP6YqpzyeGNN1GV/GzNL6RGKK2Kf1OLtBe qlivpuqrCCR1lfqxeDa4YLd+2f+ly6JzSx8MZ1zvf95KeU+TkAecxC1DjWqVqrvS y18mDX+CwVpu87OtZqXYHLfYoMwXs4Nz8sFSJH2hkdkJlL6zqb0b8woeLOydgNWX vLHo/Zd27uEldee9+g1CH+ZRmdFHNB05B2dTLLXwsqaGeROuH0MiutAdwGcpCR7z 8Ch8UtuHRDx3kKAeOmqqVfzENT45qkQs18AmnzZAjquzbcRvHaVRJ1H+ht0id4VL ozpEXWI1D9oBoRQzyS/3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1764092737; x=1764179137; bh=c /XTxWIKDwvt7kZH4toWsOBSgqGj77A9B1YzYofAa3Q=; b=zav9LIqL/EvU+h07g f/w1yoG54synNGaKB6a6EjE03HJZoRVOOkc9nPw6Gdv6UkKqBe+4Cctdvi6FF9YA xXg1dH4P8GyGavRnaX5vinf5+2n94DdWIbtzjkJiVq4aKCR4tCJCdZItJ41732Du oaZrQj15b1r0IDTwZ2r0ZosqGZjl49D7m28MabkyDw5uI7gJZZa9EdaUU/Y7dQbA 04R0ycb5j0PIv8/WhIzP5L+aLVxqm2Q9eFy5mIjcYa+ce+IRIqol8kcjgwnxLcKb Ln03sNrMkGphuMS2euKT+Ff2V+OYnSSop+EnHdlFapt0j4VLhB4j51wP01Fr/qNT MrVCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgedvuddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehmihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgtohhm pdhrtghpthhtohepnhhorghhsehlvggruggsohgrthdrtghomhdprhgtphhtthhopehmih gthhgrvghlsehprghquhhivghrrdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghk vghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Nov 2025 12:45:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1764092735; bh=CA/3U8koOWg2m/YbZ7y1V7wXK4+0jaN9xUUglNtHEuY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=TstFWnycCMlq6a+8GZ0TN5NqCHfxTlGWq66Ihgtde3LjTveOumQSfPwGkutfJfNLO 0wHvLgXM+kap8SDkL6GQ/3EiKwsqr6++OpipqDoFKYgc7qRbYO99MGTKm2YOiKzuyA E/vhmUKi8VuB5ES9ZcmOUXQb4EMfFzhIB0Jh1L+AVkWUqzjuu0OfFDQ6B5oDgBiXbN 9Zf+jA91cKFChD96SpG2lR87MThEKnVSm4Vev55mWVSdsdiKuWEYRS359lXubE1XEK ZhAWCINva+aJ2OwB1OomlAASDT8hDF7OKPbpowC0G+HQh/onYbrsD5DAf5S6DGebSi h6rDl1JNQ8KGg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 0F2D776; Tue, 25 Nov 2025 18:45:35 +0100 (CET) Date: Tue, 25 Nov 2025 18:45:35 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Michael Paquier , Mihail Nikalayeu Cc: Noah Misch , PostgreSQL Hackers Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY Message-ID: <202511251737.kuptxwylgmtx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Nov-24, Mihail Nikalayeu wrote: > In a few words - it is an attempt to make sure the test goes to the > wake-up backend only after it actually enters to wait mode. For that > reason an additional 'notice' point is used by spec. > I have proposed another possible solution for the [0] thread. That makes sense. I pushed it now, many thanks. On 2025-Nov-25, Michael Paquier wrote: > Reading through bc32a12e0db2, I am puzzled by the committed result > here: > +#ifdef USE_INJECTION_POINTS > + if (conflict) > + INJECTION_POINT("check-exclusion-or-unique-constraint-conflict", NULL); > + else > + INJECTION_POINT("check-exclusion-or-unique-constraint-no-conflict", NULL); > +#endif > If you have no plans for it in the long-term, I'd rather remove it > from the tree, rather than keep it. Removed. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "We have labored long to build a heaven, only to find it populated with horrors" (Prof. Milton Glass)