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 1v7B4v-00GAhQ-9h for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Oct 2025 11:14:29 +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 1v7B4t-00Br4X-3E for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Oct 2025 11:14:28 +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 1v7B4s-00Br4P-Pk for pgsql-bugs@lists.postgresql.org; Fri, 10 Oct 2025 11:14:27 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v7B4r-001PH5-10 for pgsql-bugs@lists.postgresql.org; Fri, 10 Oct 2025 11:14:27 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 87418EC0183; Fri, 10 Oct 2025 07:14:22 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 10 Oct 2025 07:14:22 -0400 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=1760094862; x= 1760181262; bh=WOLdyVSGSMieW+UMs0VfLv5fkfjkF2cQZMxYkskuBXw=; b=Q BOpKLsEByi1Ake53x08wq7hnrs/44qfBpolH8fypIUWPCWftLq/790JWubL65sqS m63Kpivt0REC043dFxNQGqzmbJ5g3pvya6z+rBv7Bf53bGzvSEDRaT0OQmosDci9 FD07Xqafr17RpTsHL1OYDvUrGm04SIazi+eSQaVdjQoDti/MeI2unxyAY12NBOke Qniu7AFkmuSIgaApmfi6y8/YEM44lGo+lZt5pg1LpAKXBRMhEYX+pwzB8Uorrg1S TcI0BYpigS1lmOyFIkEmE/UXNE0I00LRRPie7t/magjAcP0v6+brHfCp05W/HpzA hx9XLUDU0WMVuxjUGh70w== 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=fm2; t=1760094862; x=1760181262; bh=W OLdyVSGSMieW+UMs0VfLv5fkfjkF2cQZMxYkskuBXw=; b=JzrHT0nlUKzcpuYqa t/L82+0T1tH+4qwcYtpX9Hv2/XS8KxuGbVXw2Uoh8nF83Rwwat5EzOndl0m5CmXp Oe+sB3QamHg8qE9aQ8vqSxgAKb7n6S2oz00GBNMP7DJr61rcIiCRsiENQDpeHCDo 9HY5eGodnMh9qh8lkH6++VtNv/rVDdYLVMD/UBGuZWEUQ7KetP0FdJAQfnT9zUJZ 064v5GRLe9UlaQhBKwrLv0gjEwdG5R+pqxCBCvgHICJm75HiqVQ5y/ZAL+pved09 YvMt/03rSgZ8ANZM3jMUOjUt463q+t5K4zEmCQOXD/mUM1WCAolA+i6SOGN0r6/u 517NA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddutdekleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehpghessghofihtrdhivgdprhgtphhtthhopehpghhsqhhlqdgs uhhgsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepphhosh htghhrvghsqhhlseiirhegtddrnhhl X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Oct 2025 07:14:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1760094859; bh=laDIRNKmKthS71dOKu8Mw+7HIZELMJ5H0mNO/oHho7Y=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HUIwfRdrcW/bpwjOcYWBat2JaSDEqG06UG3t21+dQeWpz0DgcyPz+cmUp6Arn8+AN dyiwYYyk/wbmvovZKlB1wkCF7IAuLkcH7jfc48/ABEtVY9fcowCimk3i5QyoIKNXqH +PAOVvKT4qGvqLGtl4idKeEK/QoS+KedgvVCEhfjtv06dFvPfPt/AyAs/yJsyBjZ30 pwv1EZEMTZNd7Fq8FXDbhWw1hCs1dxlhRjFeWoFaQiYDUm1Esq35SP4WGoLLpSS+W2 FEwGxl0tvJgVVmyL+ZcVLJATzLhrwNtTTBhgjj1X/ZBqUcg+iLJaGEmzwpahlDEymA S2XWZpkQEonww== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id AF82057; Fri, 10 Oct 2025 13:14:19 +0200 (CEST) Date: Fri, 10 Oct 2025 13:14:19 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: postgresql@zr40.nl, pgsql-bugs@lists.postgresql.org Cc: Peter Geoghegan Subject: Re: BUG #19082: Failing assert in index scan Message-ID: <202510101109.xc4mj5lzidv7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <19082-628e62160dbbc1c1@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Oct-10, PG Bug reporting form wrote: > Last week, I've noticed a crash due to a failed assertion that was > consistently being triggered by an application every 10 seconds. Here's the > log: > > --- > TRAP: failed Assert("!XLogRecPtrIsInvalid(so->currPos.lsn)"), File: > "./build/../src/backend/access/nbtree/nbtutils.c", Line: 1782, PID: 394782 > postgres: mastodon mastodon_production [local] > SELECT(ExceptionalCondition+0x75) [0x55f9c3027ea5] AFAICS this assertion is new as of commit c7f25feb3862. Peter? I find it rather odd that you're running a production instance compiled with assertions enabled, though. They have a considerable impact on performance, and should be used for development or testing only, not production. I would recommend to recompile with assertions disabled. Also, it might well be that the assertion is buggy, and that nothing would go wrong if that assertion is removed and just let the `if` test below handle the case. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/