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.94.2) (envelope-from ) id 1s7gxT-006rnL-6g for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2024 19:40:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s7gxS-00E8Oj-Sz for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2024 19:40:06 +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.94.2) (envelope-from ) id 1s7gxS-00E8Ob-KR for pgsql-bugs@lists.postgresql.org; Thu, 16 May 2024 19:40:06 +0000 Received: from wfhigh1-smtp.messagingengine.com ([64.147.123.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7gxK-000aYj-JY for pgsql-bugs@lists.postgresql.org; Thu, 16 May 2024 19:40:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 45B14180012F; Thu, 16 May 2024 15:39:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 16 May 2024 15:39:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.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 :references:reply-to:subject:subject:to:to; s=fm3; t=1715888395; x=1715974795; bh=SSMHY4KLrOfIKTbEi57CrERYAs0AhqQYVJkwLthrhsg=; b= a5aSZvKPDgD4RJx0jTu/WxkRrJw01Qvd6jlLctJg+FNWxATxwJ49XJ4KJO0BxrEw d3rnB/qihGcZgEhy0hzhEajXkcwiLjHtRXQ6pVRAnsIWM7fCnVUdr79PPx69s0Mo 7DR/7mBLnQcLdFIoAo9z1WYVaug+bvQBXvQSHY8v1aZADm6EeOZndfpF2s1bLx2D MyTTMj65D5Dfz8Dhy97rrOPmLl6eEf/KYg8p2H68jSJCdNYQ8vRS4i51HCl3aCWU rcOvZkQ87CKFpCDCKSM6SfwN3+980dQY0r7Oq4zyTKGFeCNPyxQnrQhFdrMgHZa1 R/0mohiSCr64DP8tAnqMXg== 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 :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715888395; x= 1715974795; bh=SSMHY4KLrOfIKTbEi57CrERYAs0AhqQYVJkwLthrhsg=; b=F 8xXvnXmNtR4HJW+weeZCClA3CxRFJPlTZuAIAp8oyuFiNRlivcbtXigUG/GjBbNd 9SoMU+jVTeGA4h9LmWIhIdUlzxCWvk9GaAuvKcI8dTb1BDYSheFA6/Cwq3iHMaky J6irJtzU0N3grSdmIeXKtQU7PRonReXun253s8n0B2QnbPT2VAlpPOexSSuV7SlT PU8CMqRpr3N59RX4LiMVkDSeyT72jlnnPfHWlkB+/BKtE9xX+Vpu4+kfnyOzPIeQ BwExpkJXk9bewoeHoUl0cBcgfQUr2F9WEEduJP6BFN8d6WMtB9MS5uBYw8FrlXWA 31hDO0LcxDVepXVxCCfaA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehuddgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheptehn ughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecugg ftrfgrthhtvghrnhepudeufeejhefffeetieelgfffhefhvdegvdevhfdvtdevieffudeg hfekledvtddunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghn rghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 May 2024 15:39:54 -0400 (EDT) Date: Thu, 16 May 2024 12:39:53 -0700 From: Andres Freund To: Peter Geoghegan Cc: Bowen Shi , Melanie Plageman , Robert Haas , Matthias van de Meent , Noah Misch , Alexander Lakhin , PostgreSQL mailing lists Subject: Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae Message-ID: <20240516193953.zdj545efq6vabymd@awork3.anarazel.de> References: <20240516033308.tu3urchutxy754bp@awork3.anarazel.de> <20240516163810.t3oom62dxxmth7cg@awork3.anarazel.de> 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, On 2024-05-16 12:49:00 -0400, Peter Geoghegan wrote: > On Thu, May 16, 2024 at 12:38 PM Andres Freund wrote: > > I'm wondering if there was index processing, due to the number of tuples. And > > if so, what type of indexes. There'd need to be something that could lead to > > new snapshots being acquired... > > Did you ever see this theory of mine, about B-Tree page deletion + > recycling? See: > > https://www.postgresql.org/message-id/flat/CAH2-Wz%3DzLcnZO8MqPXQLqOLY%3DCAwQhdvs5Ncg6qMb5nMAam0EA%40mail.gmail.com#d058a6d4b8c8fa7d1ff14349b3a50c3c > > (And related nearby emails from me.) > It looked very much like index vacuuming was involved in some way when > I actually had the opportunity to use gdb against an affected > production instance that ran into the problem. Hm, were the cases you observed that way using parallel vacuuming? And what index types were involved? Melanies reproducer works because there are catalog accesses that can trigger a recomputation of fuzzy horizon. For testing the "easy" window for that is the vac_open_indexes() < 16, because it happens after determining the horizon, but before actually vacuuming. Now I wonder if there is some codepath triggering catalog lookups during bulk delete. Greetings, Andres Freund