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 1vN8zM-00CDFA-2i for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Nov 2025 12:14:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vN8zL-00ERIQ-16 for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Nov 2025 12:14:43 +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 1vN8zK-00ERIF-1W for pgsql-hackers@lists.postgresql.org; Sun, 23 Nov 2025 12:14:43 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vN8zI-0012QW-0Q for pgsql-hackers@postgresql.org; Sun, 23 Nov 2025 12:14:41 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id 298847A00A4; Sun, 23 Nov 2025 07:14:40 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Sun, 23 Nov 2025 07:14:40 -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=1763900080; x= 1763986480; bh=InrBzir/SxXwDVrq+q45lfJ8g3qazJ9NcTTybKfXACg=; b=C 5rDyA9AqwFqeJJ4E2c5384+KW5mhU8jrERR/zaCB05+iZesjx1d2t2eZWLvomvuc /d3xKIq42tzao8KlpdXno5gwGlKBe6bmKPtcZ6os+Z8tBR3wCSCIXX5ECRFmMCEG oVXtIc/13EQ4g3EDPwMUqk2GcgoI2ABLAodc/W/FLfCDfUz4Xe415ZcTjNvFH2D9 DqJnSCo5cXkzr1Kw76nV91hTfixxHlCtyr0Ml7bh7veKeKFhSMJYzIn5YZzriT2H yY0ocgS5OS5fbUoFLsaxMq0ImCMCZgCTUfVao2wFzP41XfZBbjdE2WR284ABolpg zB8jwqEAeVHIdqKVbKc9g== 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=1763900080; x=1763986480; bh=I nrBzir/SxXwDVrq+q45lfJ8g3qazJ9NcTTybKfXACg=; b=Sap/c6WAlvShG+VCK YXvYutSspPnZtdLUdlRAi+IY1/HLG0T75bDNwyKeso+YCjMh1M9MltVkQPRJ9xSI oC5bAmmhnbB54WdaPHCyC/JHRvf+Sx7ixcXSPmTSBdBUFXe4mWYIYGHSumJd7AEA sFL6nBF28XckNpjbLSFL0wox27Uiasf2BPCtui2SRYVIN5AbPWj48BcZIpOBjyrt rQa0W4zjVZsp/JyYhv4NWvFd1AeIuLrU5Co8Yp5SB19d1JnRiAk4eu7S07NNXrbt ocCLCyCCJP0UKau1ibxKb02jCAxC4pO11b3ynt4KDk3yCEjvS9N+anXKH7AIEBqM uVQSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvfeehjedtucetufdoteggodetrf 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; Sun, 23 Nov 2025 07:14:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1763900077; bh=Mfn6vzjxyeuGk/9JjXua2ljTq/1qDoRaWV5Hz33ANEI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=uIsWhc1Y+yRRSxqvfydYeFCnj4sKkP+fzogWZrF9XJYoFAl8qSPlXg1NoEpQsVnke yKZRR3/USZV/18EKZEIw9xfibNOIdwR8WdALEco61b+VWu9G/zJ3BWior1Y2/BZzg3 nnWME1TK4r+J5weuwWCKzztnWXoLmwxKaR3459lE2OGqi4C8P2gLBOc4qzfhX43qrI T7Wab3/2i25WujoRnvlwarw0kGCeZb5L6JMhZW9YtvqAgSKmWwfSRl34PmDVe9DVav Sgx1uqp2/idir5ObeXyp+731XDsq+jgTZmOgjRYX0RiAwKj/RTwWW1YAY7IK3cvQl5 xSay/y5duzgIA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id E273176; Sun, 23 Nov 2025 13:14:37 +0100 (CET) Date: Sun, 23 Nov 2025 13:14:37 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Michael Paquier Cc: Mihail Nikalayeu , Noah Misch , PostgreSQL Hackers Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY Message-ID: <202511231211.kgqkbfb47ro6@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-23, Michael Paquier wrote: > On Sat, Nov 22, 2025 at 03:16:44PM +0100, Alvaro Herrera wrote: > > ExecDropSingleTupleTableSlot(existing_slot); > > + INJECTION_POINT("check-exclusion-or-unique-constraint-no-conflict", &conflict); > > > > However, I don't see that the SQL injection point interface has the > > ability to receive arguments, so I'm guessing that this is not workable? > > Maybe something to consider for the future. > > Are you referring to something like 371f2db8b05e here? This has been > added in 18. Yes, exactly that ... but can this be used by the SQL injection points functionality? The test is an isolation .spec file, and I didn't find a way to say "make me sleep when I hit this injection point, but only if conflict is false". Or maybe I just missed it. Thanks! -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Estoy de acuerdo contigo en que la verdad absoluta no existe... El problema es que la mentira sí existe y tu estás mintiendo" (G. Lama)