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 1vl6bp-0079Ed-2P for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Jan 2026 14:33:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vl6bo-001jLc-2e for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Jan 2026 14:33:29 +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 1vl6bo-001jLQ-0q for pgsql-hackers@lists.postgresql.org; Wed, 28 Jan 2026 14:33:28 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vl6bl-002kNp-2v for pgsql-hackers@postgresql.org; Wed, 28 Jan 2026 14:33:27 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 37680EC00C4; Wed, 28 Jan 2026 09:33:25 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 28 Jan 2026 09:33:25 -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=fm1; t=1769610805; x= 1769697205; bh=ft/cr7pvEvXhnbzmQqvTLBZL5DzZ8psVG94O+Nf4xQ0=; b=p Gqtkdv6VqOXWNkBPSDC7Z9qTz/Z9Y3J4k+nzQw9qX/xAat4XJwp3Z1VVJdMdXQrg nupuF8V1YDhsU7/CqWaN0TPYfCh/inHfI1ORLcpxE/tJCNixiZxPcEchYELKueA9 aGoBNkeSH0bmWODC+nNVnVkA/FybKcYvEWPhXQRcgiXbFmWdZtfYEY1SeAuclR5y qtsecwjiM3YDXtwRblgQVh7f0MtSMNbY3wbpPSDdL3K/LHE4ijvlnXhie90Gv0by fur9JZbZGngi9iB78A3ywuPpgpwGiJAPp3cGXeBbkEQbOnUbi2UPXeSreU3G2df8 E0KuMaG09i81vSTY7bE/Q== 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=1769610805; x=1769697205; bh=f t/cr7pvEvXhnbzmQqvTLBZL5DzZ8psVG94O+Nf4xQ0=; b=ciNSau7ZskkYwH5t8 8NTAXVuF/77da6TgrPdTDAqNkVFxnHFi1tlZ3te67dPKX6c9Yys9MofnOMm/uIEF Esq4RnTcsRCW3qtQOZLE1Lda92MjMuGD3pHucikI6K8j/oLNHE4QLJKn4tKrmwAE dLiceF5vqhI1+2dr/TF+ofcU1z4YQTCa/+uj0XA38G2iweOb4TfLH9J2Mp99PRgS keN+Oxo3JwZVDG4J6sC5Bzak4FbIfJ92ja06l93S+oXsuqzSgyPjFAMnLnXnEp1c r6cS+JHEYtOsM2e7rWRUWOyS9Y0CUwJQc+FaLAL3VesWiMDSNNRFIt5YFBElsT9m mMDkQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduieefiedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegvgigtlhhushhiohhnsehgmhgrihhlrdgtohhmpdhrtghpthht ohepmhhihhgrihhlnhhikhgrlhgrhigvuhesghhmrghilhdrtghomhdprhgtphhtthhope hnohgrhheslhgvrggusghorghtrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhesphgr qhhuihgvrhdrgiihiidprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsth hgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jan 2026 09:33:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1769610801; bh=+2kHDvbbKTuKZxp/7z2HdqGWnmGDDYU5LyMddK10vXA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=M4c6dJhaJlhCJVj3Fu3voNBO64WgYaDUUkI652vnN5YLTdgeRfLIH0vHV5Vbh+JZM qy2YKL/ETIAw36b6uPyitHV9n0zfJMrHY84pDOGOcTIgFkE6BRZed/tdbARyK3Nj/J 73c5OoxU7SY7Hh3NzFCHsBp3BH4hocmrVKCcamX/t8zWXZpHx+Hs5/afG75nCDxSZK YlBSRP9okg9CDkqh27XovdRxz5i3IhLMeGtKix6YiX+H1HW+Lq9+h7HTEtM8G9ikur q27GG0vuYRIoi7wFQzo90p7suqRUCp4JrOhu6oeCehudt8XWok1TF2D1iTuzxfZZKK zVMwTIXsKCnaA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 91DD77A; Wed, 28 Jan 2026 15:33:21 +0100 (CET) Date: Wed, 28 Jan 2026 15:33:21 +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: <202601281425.dqtjx6i2kow2@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 Hello, On 2026-Jan-28, Mihail Nikalayeu wrote: > And about the opposite race + assert (not sure we need to keep it). I pushed the fix, removing the assert and comment about the whole scenario. I'm not sure the assert was doing much, because as I recall, the index array is populated using the index list obtained from relcache, which is sorted numerically by OID by definition, so the assert is pretty much tautological. I'm unconvinced that there aren't problems in this code related to OID wraparound for indexes, but I couldn't find any after some testing. That of course doesn't prove anything. Many thanks for your efforts here. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "La libertad es como el dinero; el que no la sabe emplear la pierde" (Alvarez)