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 1uwrnT-008BOm-9l for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Sep 2025 00:37:51 +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 1uwrnR-00Af71-ES for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Sep 2025 00:37: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.94.2) (envelope-from ) id 1uwrnQ-00Af6s-I8 for pgsql-hackers@lists.postgresql.org; Fri, 12 Sep 2025 00:37:49 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uwrnP-001vw0-0d for pgsql-hackers@lists.postgresql.org; Fri, 12 Sep 2025 00:37:48 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1D24114003FF; Thu, 11 Sep 2025 20:37:46 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Thu, 11 Sep 2025 20:37:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm1; t=1757637466; x=1757723866; bh=Pbd2xw/0g9 D4T5oF8KCCk+41IUlMU7BaYLiRPyZ+veI=; b=QAOXkeSbNFCiLw9n7PA+a0ZYBZ xxKwR4Na3Csg/82iWDlirGNBJTfiSLCXJ2aBaf8+o7w9b969pj7hvGx8dZD8jgVc lIy7/IZ+e/fQiN6Tp2W0DKQDXqWvdEspeWP6lJr76nWYUevksB0J6iBpEb98/CKj sAnCTPEv23qQEkx1x1XY/52nkTUO0jW45CtAMm1lGR+maWfnfZJb9Q15G6Ys+I9T cD2sut9CFCeG+6Gw7a4jCtei7G8a2sNvdNyWkriSZsSQnD/fuqz1MKO3uvbfOeU0 Lweqg3l+VrY11k9+4WIK9HeRf97qy3luza4fDORKJlsyECIzsakZW21q5X2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1757637466; x=1757723866; bh=Pbd2xw/0g9D4T5oF8KCCk+41IUlMU7BaYLi RPyZ+veI=; b=Upnf4uKbz6At6VPtpoL0USZc1wliWD8Ux61pMAvFZfXOOklPfdh HzKqJxDy1cTZyD4rK637StSTdW7Th2eugRWqg75Yb2DNePxheB2xbKV0mS6tdO2u LQ2Sam9P6uHHBvTJpT2RliHOnAzQkKqRefRtLXgz86jYXo3QPXIMMGP3RZt0trKz 1P+uD0PXarsZyYFnKxlEllsH3j0saoGWI2gF0zMuazQBCLDD44y1GE4aqX0MpKLN G76eM/bzK/t1xeqGrZl13XOLIuXCNQJeNafs5H6ADIQyfbQHv1tXhvTnj7fAn3oy 0EjmWgCo2zyKSDmZYbc/Ib0SLmyNonCjyBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvjeeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehkohhusg gvrhesghhmrghilhdrtghomhdprhgtphhtthhopegsvghrthhrrghnuggurhhouhhvohht rdhpghesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhsse hlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Sep 2025 20:37:44 -0400 (EDT) Date: Fri, 12 Sep 2025 09:37:30 +0900 From: Michael Paquier To: Kouber Saparev Cc: Bertrand Drouvot , pgsql-hackers@lists.postgresql.org Subject: Re: BF mamba failure Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bWsaEOg/wKyEDUBS" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --bWsaEOg/wKyEDUBS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 11, 2025 at 04:35:01PM +0300, Kouber Saparev wrote: > The pattern is the same, although I am not 100% sure that the same replica > is having this - it is a cascaded streaming replica, i.e. a replica of > another replica. Once we had this in October 2024, with version 15.4, then > in August 2025 with 17.3, and now in September again (17.3). The database > is working for month(s) perfectly fine in a heavy production workload (lots > of WALs etc.), and then all of a sudden it shuts down. The shutdown is caused by the startup process choking on redo. FWIW > Thanks for the feedback, and let me know if I could provide any additional > info. Okay, the bit about the cascading standby is a useful piece of information. Do you have some data about the relation reported in the error message this is choking on based on its OID? Is this actively used in read-only workloads, with the relation looked at in the cascading standby? Is hot_standby_feedback enabled in the cascading standby? With which process has this cascading standby been created? Does the workload of the primary involve a high consumption of OIDs for relations, say many temporary tables? Another thing that may help is the WAL record history. Are you for example seeing attempts to drop twice the same pgstats entry in WAL records? Perhaps the origin of the problem is in this area. A refcount of 2 is relevant, of course. I have looked a bit around but nothing has popped up here, so as far as I know you seem to be the only one impacted by that. 1d6a03ea4146 and dc5f9054186a are in 17.3, so perhaps something is still off with the drop when applied to cascading standbys. A vital piece of information may also be with "generation", which would show up in the error report thanks to bdda6ba30cbe, and that's included in 17.6. A first thing would be to update to 17.6 and see how things go for these cascading setups. If it takes a couple of weeks to have one report, we have a hunt that may take a few months at least, except if somebody is able to find out the race condition here, me or someone else. -- Michael --bWsaEOg/wKyEDUBS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmjDa0oACgkQnvQgOdby QH0LdBAAi/0G5C1P3OVA182TQoQPNQ8yx1Y7m5iiyNpDRRGnxTIP+WlzkG30yNkB Wdo4NOWN2yrn8gUz7Kg2Lo/yjg8TizqgkoggOlHuyqZ2iIGpgCM3Vs/P9yf/uj5Y YY55PB57e/8q0BHfBu1C4J+1C4NN1+z+cXhvoGn1Ry71/qec4Ev3o+HwfMS4k76C ygQK1kG+6AOvR+dAz61JkbjQydN3FHh7j1GyfDkTlR1MPcEiilFS03xHo4EMCjnU EymK4EuLXloZROCmRnoUQAFETkBqyw+T/ItSNvhmdVjK1lCrARMPUcv57bgpYgNS 67dDvylgTbP0+1gxVCujHaQKEu1wc0+UT4+ZJJcQsDmN0zNpP0Pl7QZpSgwKTe3a +mgtw4b1NabOb0c6iP7mPvFWe4PHKkbSFtqPi+4+yJirvYDwSnGakHKedjplLpyp ci4pGMLinrbD5cqrCOW7woME8B2ScmSVk4fMD0KhEg42Mk0dy9z9q2AYjM7wKN3K rMU+j1HxAShXikH7aHUjPQGi5LX8MFlASme/RD6mWOoF4Qmam1fVkryny8W9o4Is dLpAqdkhMl5Afw3ukn03q3bD5ji/j4jMwocprY4qRLigyhynOishz8qUwL0OPCA1 AVJsnReGcnGmevFeVBvYUNteQx2VHKvXHqCIIttDcSG1NwmTLzI= =FHqJ -----END PGP SIGNATURE----- --bWsaEOg/wKyEDUBS--