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 1sLxMe-00HTeX-1M for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2024 04:01:04 +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 1sLxMb-00DfkZ-3A for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2024 04:01:01 +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 1sLxMZ-00DfkR-PA for pgsql-bugs@lists.postgresql.org; Tue, 25 Jun 2024 04:01:01 +0000 Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLxMX-002zg9-2u for pgsql-bugs@lists.postgresql.org; Tue, 25 Jun 2024 04:00:58 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 3362E11401C5; Tue, 25 Jun 2024 00:00:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 25 Jun 2024 00:00:55 -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=1719288055; x=1719374455; bh=vEf5y0ev1/ 8hDyFyKnb9WK1UcSZQM7cPQJRBVjzkXSc=; b=jpUMlITXLjmO5RzfZ1teQhlg3O JkC6Suey6t+iVCayhcGpmqcRkRkzA49gYdOPsrNl/gsqWuKmp84XpqFSbm4sQhpB dbiqyivWMISwkKFnKc3jMUzD7dUqmwZkKeM7jgWw1GYlBLIMGsSqvzKWjh+BFpeI ajiGjFLe9+4l8d9wCxa0RrfvWk2694FvmuGBp8U7LqAgDUmE68aTDDQEJis4bBUW IjxwCE+wXW1B6MnA0njQcs+kAPkuKHeyjLB4VR9obhbOQLpr1OFWYLBBDRkGDXMk TGXpTIr1n9jLYfL5pYpgsVISNaMEYsutCZ/X5GisbL1AG2xjSAR9MtDtHsdg== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719288055; x=1719374455; bh=vEf5y0ev1/8hDyFyKnb9WK1UcSZQ M7cPQJRBVjzkXSc=; b=AFvmdkgpSwSl/H6sTFKo4oPRViqtD6LJNVZqqSnuZxDj hyMcrY7QDaWSgqJHijsJvgIrvpYNinDhsVQhOMI2jLeE/BPgLDzof6Ccl0uP8CZb ko8c+H1m56MW+ua/QZtdiwWIrFTILgcwIfybJAiHN8n0wVzbBxWDtULGCywCJhaf 37xB/PTJ0LJmbecEfFfOks2Yrq52NtClSIiiR3n6iDL4j+D/ojVSJKZLzvTgVCH3 HfiNwpILuPkgNgey2WqczRYeaWSAMPdZT4mHD/AUVOoKSESw2Nwt8WJaI6u3Z5gY 1LYmP/TVL3QnSKPqU6gUXwOdw+qqYQ+ehQStG8JXNw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeegvddgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvg hrnhepgeffjeevgfevuddvjedtvddtieejheduueelvddufedtgfefjedvkeevkeeivddv necuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghr rdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Jun 2024 00:00:50 -0400 (EDT) Date: Tue, 25 Jun 2024 13:00:39 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: florisvannee@optiver.com, andres@anarazel.de, bertranddrouvot.pg@gmail.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org Subject: Re: error "can only drop stats once" brings down database Message-ID: References: <20240611.164457.1388765109177375375.horikyota.ntt@gmail.com> <20240625.092248.1063552122181843294.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5Cok7QvNokBhS0HR" Content-Disposition: inline In-Reply-To: <20240625.092248.1063552122181843294.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --5Cok7QvNokBhS0HR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 25, 2024 at 09:22:48AM +0900, Kyotaro Horiguchi wrote: > Is it something like this? I forgot the reason why this was excluded > from the vinal version, though. >=20 > https://www.postgresql.org/message-id/20201001.090722.322196928507744460.= horikyota.ntt%40gmail.com That's a bit different than the gc_count presented in 0004, because there is no relationship to autovacuum with the cleanup of the entries, still there is some overlap in the thought process: this suggestion just makes sure that any backend holding local references to a shared entry with a different age does not attempt to manipulate it after switching locally to a dropped state.=20 -- Michael --5Cok7QvNokBhS0HR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmZ6QOcACgkQnvQgOdby QH1B2BAAmmgcEZ93ufYNuMfLqZ9xBvL3vK946VlZhVyjE+RssIcpSe0bEvtR/F8l 6CSp8LDwbGSynrTcq3rto/wuQC9e/OSkv0Kf91YLi1g6xSd+i/fquuKRmMZ7n8a0 Ka/x0bdJd6IUomzCwRs0QToxd/sC6KRw/KOskop/+YhopixJuR5l3BHAjkhsIRqA ZBSoMgQP244ADnvt+4xF2eBHgZKEJhZ7+5htaDf48MiBIlc8O62JcZI7vh0r1Cui vvaOQN1XxVA2cee0sp6VwkPN9txz8Nzz1vh5e7/73nidlr8oFJKVIipP/kD7EhVX dGthSMllYckXosvrF92jJwyTNbkRxKXBrpXEuh9BHvbh9cYIDaKQNnqCJEGH+sfs hUXKpG3SZww9Xs+tMFo+gdy8ezW8Nx4t8WmfV5zkPTWrxImh9vz9GJXSpHoQL+tY bz8EHPb9ra+l4xOaESf6SyOrNcffxREBpzM89NYcwudOBT0dJBrRqjSca0MSZ8m9 lfAoYP/t4kisxnEbY/FAfVHUIUV9MbatkM2C4/ikkrdL0Rw+dHarS3O7O8iuEHSV qcFJ1BpJ7K/+Ybk5aEBjCWwjShMk6SSXZNgKCuS3lIyeZE0BmQYI4jhQj2GIKs1x Uk/Thoug2hY5tQqiqU2TrH8ne1PouH2d+C3f6M2uLBWC1xd2ZDY= =0PBR -----END PGP SIGNATURE----- --5Cok7QvNokBhS0HR--