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 1vToLQ-00BWF2-38 for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Dec 2025 21:37:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vToLP-005IYo-0c for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Dec 2025 21:37:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vToLO-005IYg-10 for pgsql-hackers@lists.postgresql.org; Thu, 11 Dec 2025 21:37:03 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vToLL-000ENw-2u for pgsql-hackers@postgresql.org; Thu, 11 Dec 2025 21:37:02 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 08B6F1D00147; Thu, 11 Dec 2025 16:36:57 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 11 Dec 2025 16:36:57 -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=fm3; t=1765489016; x= 1765575416; bh=qmyaUKPdiK6HJOSToGJCY2Ldha2O97m7l8torNm6gKk=; b=N WO3fI/NXLC1asBJG0LRdwltoLSbh1lwPdRpW0x3dUhNnX/oNX2FGrV+LrgF27EyW vBPDnMhPUNv66XwqZXQYZX3O5L408Yzth6axkziai3BktjPtA820vjQFyH7G3nt4 Xq1KdJrpPBw+7vmMZhuCENLnvTYqoaya9klp/QyEuXmaVTBxFLJp4Ahlc69f4bmd KpqdrMvbRP7XUfIdTR0zjmQyGDUMlRn9YoGr2/AtOMnxOcsxUckPbcwJ2eJlR/6W 6nHdtXtofWnP/gHfZA1Rs87DYNo1asBcCQUKWu8C2E3dPuQjIkcR/HBDu/bY6WC6 A3VkyWqC9+Awv3X4E/HCQ== 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=1765489016; x=1765575416; bh=q myaUKPdiK6HJOSToGJCY2Ldha2O97m7l8torNm6gKk=; b=rG1gzEZR6r4jiOAAF zcT8tdmLZEyHUziZlb7Z7PN18h4S3TbKfY5njaHgXOL6SrFQmaBV2E69Y918Gn6d BmGT9OCtOwo8WgsB60QbFh1Qpit2yhv0MR0lqgDDgS24F9cnQHTJMhuSIx1NDEtn RsAf6jKLv1CHNmg1E5+cvvThjzek/p03j2D1DKLERZXr/DM4ucdut6PJ+RxoC0be TyDPrSSme5K1I1OfWsvlzWRebr1GmTiDQISff2ruyoWhXUeZe+lbnnkQdWdb4izt UNUtJ/OUttAv34IDOvru4/CgpDw+d95sooduyBsQmVspnlHrQGAB18IxWqKW0vAT UUX6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvieegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepudfggfefffetudehueettdeivdefhfduteduheduvefgteffudelleeu ieffvdeinecuffhomhgrihhnpegtihhrrhhushdqtghirdgtohhmpdgvnhhtvghrphhrih hsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtoh epgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhhihhgrihhlnhhikhgrlhgr higvuhesghhmrghilhdrtghomhdprhgtphhtthhopehnohgrhheslhgvrggusghorghtrd gtohhmpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphht thhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Dec 2025 16:36:56 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1765489015; bh=ZevFGK6/yX19UBKsj/qwGlwJbG6VvkfVqxV7rjvs+rE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=KjM4GtyIIoEgdPHrZvA09EenMnIZbaLSaXkMV3RoOUPsfYmOmnx7se6Ux47j30jac hf/Qyp98QKFbt82jBb44kPS83Jlq5uackZAb5goRmrcDRNTYZC+o3PXTb78gC49IPf SpDBxNQ8FG/w5SN4HBVlzUIX+YOsmRneUGWRa2kolL6y0dkYZ/N+S0nLP3eOjoFTEo gp8aGiTAf0Cwc1etL1RJvOf3JRDKm5lofK1tOarboJ0EPTfIpymfS0G5/r1my+5eDD 0FtVDKciX7U0dA/J6psuh69fq3NpqD+X/Q21GF5gODNX9N3qfMC12VMJSvFIc4ZxER 4wdarUPsGYUHw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 2918D78; Thu, 11 Dec 2025 22:36:55 +0100 (CET) Date: Thu, 11 Dec 2025 22:36:55 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Mihail Nikalayeu Cc: Michael Paquier , Noah Misch , PostgreSQL Hackers Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY Message-ID: <202512112014.icpomgc37zx4@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 Hi, I just saw a failure in CI for an unrelated patch, https://api.cirrus-ci.com/v1/artifact/task/4641105595072512/testrun/build/testrun/injection_points/isolation/regression.diffs diff -U3 /home/postgres/postgres/src/test/modules/injection_points/expected/reindex-concurrently-upsert.out /home/postgres/postgres/build/testrun/injection_points/isolation/results/reindex-concurrently-upsert.out --- /home/postgres/postgres/src/test/modules/injection_points/expected/reindex-concurrently-upsert.out 2025-12-11 12:41:23.982167232 +0000 +++ /home/postgres/postgres/build/testrun/injection_points/isolation/results/reindex-concurrently-upsert.out 2025-12-11 12:45:24.038078804 +0000 @@ -62,22 +62,13 @@ (1 row) step s1_start_upsert: <... completed> +step s2_start_upsert: <... completed> +step s3_start_reindex: <... completed> step s4_wakeup_s2: SELECT injection_points_detach('exec-insert-before-insert-speculative'); SELECT injection_points_wakeup('exec-insert-before-insert-speculative'); -injection_points_detach ------------------------ - -(1 row) - -injection_points_wakeup ------------------------ - -(1 row) - -step s2_start_upsert: <... completed> -step s3_start_reindex: <... completed> +ERROR: could not detach injection point "exec-insert-before-insert-speculative" starting permutation: s3_setup_wait_before_swap s3_start_reindex s1_start_upsert s4_wakeup_to_swap s2_start_upsert s4_wakeup_s2 s4_wakeup_s1 injection_points_attach I haven't seen anywhere else. I don't believe this to be a problem in the patch, because the patch is about partitions and this test case does not involve partitioned tables -- so I'm inclined to think it's a timing issue in the test itself. If so, this can probably be fixed with additional constraints on on of the steps in the permutation ... probably maybe s2_start_upsert depend on s4_wakeup_s2? But since I can't easily reproduce this, I have no idea if this is a valid solution. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/