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 1vQSaX-00806d-2b for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Dec 2025 15:46:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQSaW-008cQc-2t for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Dec 2025 15:46:49 +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 1vQSaW-008cQT-19 for pgsql-hackers@lists.postgresql.org; Tue, 02 Dec 2025 15:46:48 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQSaT-002lsU-29 for pgsql-hackers@postgresql.org; Tue, 02 Dec 2025 15:46:47 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 98DDC14001B3; Tue, 2 Dec 2025 10:46:45 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 02 Dec 2025 10:46:45 -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=1764690405; x= 1764776805; bh=0O6hsrU7uAcp4DOXHyZyVaMALYYxzqdNWFytoHth6IQ=; b=v W6RYFIVljE7kx55n1VPfPQx3qr4zCghxap4KvtQ2AP5yvmXjzIrmrBDmOl8nWn1H IqmEDwDndFB29AnKQcVvbsTL+CVgi4sc1LDRqbUiFeHUaklC2qJ9ePB4CeWgIdhz r3KpZN4Lm0obW/QgO6Dv/eVz3uKRPCcVayXexFblGcbdOgjMUkPVpbOocCMkgh4R Vso9AxHm2CQMPKszDVJZHS81+nVDZQrdwOrQHatvI0ZexMeaJWEHeQREWq4Odxf8 kpZxAnpdgPc0oMspgoIxKfYdjs6Nl5+IMFpLEb1gkaFTDwUuOhYQKAQzvf5L/aSP TIkQtSlnq9QSAkw3mIi5w== 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=fm1; t=1764690405; x=1764776805; bh=0 O6hsrU7uAcp4DOXHyZyVaMALYYxzqdNWFytoHth6IQ=; b=Fqevxwb5Nb4YusJ6H IV/UfAdkIB/sno5+mCEcN0BRJ1Wf7thbZa8SJaysyuPMCEBY3/pmNHprLjLCgHs7 QUBgoEyLP38oOxfh3RJiJNbOurVuOn23pg7TovkfECucPeG4X/rPqCfcfRRVaaaw mhE5ngHF7PdOGgmh4ZzVBkQN0WUZNHz606iU2rTYHrZ+WsMAEW5l68v/FSlHuR9F u56qA32FuwyeBNFOOAow3rx/jGNe9YmM9Sd2j2QmZ9F41+rHa4u76IVXrk/WJz0V XqbtoGgbeu+zu91H5JE8c+HX86Un+qAgEFvw4YEhS/mAoLzVArnNxIDITAZyfS16 ArxBg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegrihhl ohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpe ffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcujfgv rhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrfgrth htvghrnhepteeuvdehffekvefgueehveetveekgfegtddtueefueehuddutdfhfeffhfej feffnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgeskhhu rhhilhgvmhhurdguvgdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepvgigtghluhhsihhonhesghhmrghilhdrtghomhdprhgtphhtthhopehm ihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhhorg hhsehlvggruggsohgrthdrtghomhdprhgtphhtthhopehmihgthhgrvghlsehprghquhhi vghrrdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvg hsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Dec 2025 10:46:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1764690401; bh=cz2WN0HPApQ+be7wBf8jFThPui7YCosCgrK7fLcBtnk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mu/k/2QhnsRWypPRT8vbsYuxwTesfTau7r0/vJnDfLCoUDUqsGnSJ9pBsYz9uBJUQ a20I36MoNRQnGNit2fRkgxk6QpI71u6/MwoyoD+2vEsc402FKspQYmwT7sl8K5fqEH f78zce4szHC/QbnQC+0Weoy5M9TQRWYTc8nKDpQ1uSkklOLrZUqnPulZxWBQXRVNwP rH4AEa8tWXpTmqixheQgvHmJha1Q+6ZwbT5F3Q9sq6KOJRQOUNivAoclQu1fNj1daG QgzyU1Bu7zRhX4/OsVdpsPulEKdVPhJNkckn8hmt9pJ5cBQjonh/Qh5LbNIMHp0qpb SDA2TJ/6ooX7A== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 6F74578; Tue, 02 Dec 2025 16:46:41 +0100 (CET) Date: Tue, 2 Dec 2025 16:46:41 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Mihail Nikalayeu Cc: Alexander Lakhin , Michael Paquier , Noah Misch , PostgreSQL Hackers Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY Message-ID: <202512021545.5bt7jcxf3xzz@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-Dec-01, Mihail Nikalayeu wrote: > I think I have implemented a better solution - without any additional NOTICE. > It just actually waits for the other backend to hang on the injection point. Pushed. I changed it to be a loop in a DO block rather than a procedure recursively calling itself, though, which seemed strangely complicated. Should be pretty much the same, I hope. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Puedes vivir sólo una vez, pero si lo haces bien, una vez es suficiente"