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 1whb1q-000Jid-2n for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 22:46:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whb1m-009pYE-39 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 22:46: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 1whb1m-009pY6-2C for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 22:46:03 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1whb1k-00000000MLe-2L0E for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 22:46:02 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 50B67EC0183; Wed, 8 Jul 2026 18:46:00 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 08 Jul 2026 18:46:00 -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=fm2; t=1783550760; x=1783637160; bh=s2p8V3GyQD 2VfefVJ9ByeCbEAE1n5CLMPymoJ6aJkBE=; b=jOewhS+4bcOL17dEiauBO04R1o pNLzk0xKPrqLuVBj6HPxV9Ym44CpNc33+FISlGR98FafbJPY6ap8AENnr/+J6PN2 tiYCtO8kRKAvJW7Mzb2gm487oLgcLxJlBoBSgFRnl3xPP3k5JUvPIa5W65osLuNf oz7W/xTwiwJ+SgNP8HR8ilHnpi+0tbTMSdK7pZxe2sWyd0gboX7Xxe9hHzYdJsoY vlxT1XKeebnw5cO9WnauZWWpJZWqUgOlwRI9Al1zA+A+aHCVRL290AAcfVcfDI8n LpSbolhWZGeo9Tx5vkJUrzbeXn8Jfwf/2xFSmG4y7rS871dbV/1HcJ7vGXdA== 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=fm2; t= 1783550760; x=1783637160; bh=s2p8V3GyQD2VfefVJ9ByeCbEAE1n5CLMPym oJ6aJkBE=; b=rTAdQAV4gNoWHVjUXZinOh7JLKzkaUj62VNijbPw3SlQ5Y/2p+g YtAFWnTPmPFGWVhf0v5lKW/6xINwkZdN34D4UYHFEFlJ1HlYiD6sYJxpO+LaNHkE gzXQWcNMzz4krOIivJobnOp8/W/w8ADsq5ziC4ehXMxQhoJ1N3IXvfXv8HbokCQ9 FVWoBq8ylHLUM0lwdIDZjMQhVX8rkZW9Dhx41yLrGij/0BS10ZOJxoJrGuxHFkHZ lv1FCM4DRCmLoummi1KDo1texOc1Ctb4kn7RXuJe6dt227LRzMeA/NaSHAT5/BLt KVsMkml59qatxvNjCfh01/HM/L2L3DoxVeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGW1zQgt9Tp825gQ5qDknzOy6ZINVeeO/+rybg8qvRx3mTYfpUiWBHu+3/eH384BL Oz7ajLXI3YgQyDtjLKtqTcAW2y+bYpMXd8nFq4ptHVca7yNKO5FXFabooVjDYY/ujQNoH5 hyYuYRSV85KVbyriwQiN9MuMi25j7Z10haAMeuQjSz42rsII9fUgf3n4ShDSn6u0F8dnD6 898r/5W/9F5PY0+QdYH5P8dzThfUZYZqYWhMLSiyJI46YBmbrWtTMPeb44xDM+S2MwcVLN kmW95v215qgj/Vyzd7Km6WCSgob0nP6O+RWmDuWx0ziX6XDP1Or11TDNWrFILOOnGn7pb7 bcCe+7A7dy1ENUH8mCBA5Iksv+XCse6l+9IdCbR63BHg6TnGY6xSAOiDDlan/0EzaIqSc5 /0UQubPgum1TFhjmNTAfiO0idQzdYzcxOBOAgbL0IUdSlsXbbT01nOREZYWUhLEEF1BmeX DJO5KVPAkX39B6421/RmfmQV55YkqPX5kMMta9k65kfVDvPwm6igyjerrwnMpPVYUyc2Td gM7I1qg5sToks6F7aSPefSEGRqSQyeX+jSrJOLkUi1OE8mAEL3TuFSxbcTtkPcAxYwpm91 AFf/1tkmZE56nzWR5RmStPFmnb8FWebkUuZkduSONckADR4waP2dGeIvrQOA X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Jul 2026 18:45:58 -0400 (EDT) Date: Thu, 9 Jul 2026 07:45:54 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: Kouber Saparev , 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="A4VhDQ8lYyPB57aW" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --A4VhDQ8lYyPB57aW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 08, 2026 at 10:53:47AM +0000, Bertrand Drouvot wrote: > So given that Kouber said that "we have around 150 entries added and deleted > per second in pg_class, and around 800 in pg_attribute. So something is actively > creating and dropping tables all the time.", OID reused is likely the culprit ( > doable in months at this rate). That would mean keeping around a session on the standby for long time. With a connection pooler, why not. > The good news is that it does not reproduce on the 17 STABLE branch, I guess it's > due to 850b9218c8e being backpatched to stable branches. So a fix will be in the > next minor versions. Due to the decision of using missing_ok=true in the end-of-transaction drops, that could indeed help. I'd be curious to hear back after the next minor release. If I have nothing more to do, I'll take it. > Michael, I wonder if that would make sense to add this "set_next_oid" kind of > thing to a contrib module to test this kind of OID reuse issue. Same idea as > xid_wraparound. That's probably larger than just the OIDs. Maybe something that's able to do what pg_resetwal does for the control file could be useful. Publishing another footgun sounds a bit annoying, but we also have stuff like pg_surgery, that serve a similar purpose to shortcut the backend. -- Michael --A4VhDQ8lYyPB57aW Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmpO0yIACgkQnvQgOdby QH1kvA//VW19aAvbMP32+/MT6o4WsPt/NXqsP3eyCQz63aDEBKQrr+oOU1HHKCCr TakqLrUZZoQxddCNDkKoNUa7eqJJQcg5hHe4th5frDGV2V466bUSeJoRGImD9frV kbTTciJRSZiRofksqSlQM7hHZnh5TbSPILhCHpeAur/E9rwH//+lDPGR8+38vvF/ ExnSXbuFuLuBZ/CNFkfZeVNxPtIzj/oW1kwjRG74jiNFjjyH6+KurucUnsqPuDA7 bNtgyn4KGEQ/kHDstOT7WEAW0x/7IH+HjqcAzXYdMRHpn10JOkOgBeySKlF7BUKe ZZ2jrGDbdfIP2FvKLvFKJ7Sxb4gPesXy5BzQ5U6OK7Pkj4+9qHMNpsHRGkZsiQIT 61joo0DrB+1Bcij+Yckt3FF02/6zggKUpl9JgvvcocFHbz/6yv1YCtY50DPaR73w V03CIdjYE7tO889kSDrZKlIoLfRrupn5XAd2I0cmOYEipha6yTKWVzb5Rhb6KhK9 mJ08up4NvPVToq5ooFwjL4B5bK4HLcgoiwqiVtl0wpIMWWuuuhMLuTVxodRSMK0G gYCaeEuQLoNQ3B80j+6JNn42uYWDR8GHARNwD90lH0G4Nfg1kvCC0VPY8fujFbBD K3u4JfGciJIEvdkKKtZSIbIIeYgvrlp4tTivcuYczeL5wxYGxuQ= =Xw8Z -----END PGP SIGNATURE----- --A4VhDQ8lYyPB57aW--