Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiU5H-00068T-Dx for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2022 05:15:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oiU5G-0005zd-BA for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2022 05:15:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiU5G-0005zU-2D for pgsql-hackers@lists.postgresql.org; Wed, 12 Oct 2022 05:15:10 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiU5D-0007Ij-I6 for pgsql-hackers@lists.postgresql.org; Wed, 12 Oct 2022 05:15:09 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 31A6A320084E; Wed, 12 Oct 2022 01:15:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 12 Oct 2022 01:15:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1665551703; x=1665638103; bh=vyOOj0s5wJ pfXmT6QQLV54gFR6TrMLCs/wXTxsAMPOY=; b=naJOKUZlyZNFWVBLqLRHodDO40 0J9ohCYt9QJ/HykMyzMAtuGkoR02xGWwtnUTv2AEDDKtFFw2XlNjHC1tzTvV3TwR i7IwaJc/j6G1XproYmeFd2jDerxK7/M8onNz9FXgpO9CWCynSdWalAx6CBnXPvrF SJIoo5m3UaJlhUqI4WGwT36LZP1Y8Ssjtb0Ya2AqqPWDCeY68vYokJmnjfhnDRnQ D0g8Mqy7BE2QI1LtlwqfEmJQi1uzL63/pmGu/EHHmg/cCUnv229E3VpjsHW06T0u wQipfkStEFn6YTzPRhhrLq81CO4GZF4gdsNaQVxQL08Z5ZWgfQ9DoLWvj9TQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1665551703; x=1665638103; bh=vyOOj0s5wJpfXmT6QQLV54gFR6Tr MLCs/wXTxsAMPOY=; b=CejaPxFWlyBO7HgDOi41oHiWqfVBDK+jW+omeVKaC+JO n6LtuPrZ4hE6G69XcdynusgpQtmp1eCyYOwdUpDZyP+s2x4MWx5dAl0lgcbO4wva AsCHhAFHAeRQ+KRUT4XluxMLhA3/ikyTdeokodOuOh/1ttLFvUtrfyKwe8oIi3by cPn2HQDdatH6hPgbLro0N08ACCix23gcBLD//uY6gT+WLYFsBwg7EpPvVqRQCGL2 GD4SP9ckj6ddQ4pmWwjOe4jwsb+kWXPz8cx3zfibhUj0a5Ac4U9e62rifipFGYde LrGYazArsndW8zZU58MvkDa4PTfquWSGYTA16hqh3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejjedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Oct 2022 01:15:01 -0400 (EDT) Date: Wed, 12 Oct 2022 14:14:59 +0900 From: Michael Paquier To: Robert Haas Cc: Tom Lane , Daniel Shelepanov , PostgreSQL Hackers , Andres Freund Subject: Re: collect_corrupt_items_vacuum.patch Message-ID: References: <1649062270.289865713@f403.i.mail.ru> <3107109.1658958956@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wmjrBQvS+kd5AsLy" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --wmjrBQvS+kd5AsLy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 27, 2022 at 09:47:19PM -0400, Robert Haas wrote: > On Wed, Jul 27, 2022 at 5:56 PM Tom Lane wrote: > > Maybe we need a different function for pg_visibility to call? > > If we want ComputeXidHorizons to serve both these purposes, then it > > has to always deliver exactly the right answer, which seems like > > a definition that will be hard and expensive to achieve. >=20 > Yeah, I was thinking along similar lines. >=20 > I'm also kind of wondering why these calculations use > latestCompletedXid. Is that something we do solely to reduce locking? > The XIDs of running transactions matter, and their snapshots matter, > and the XIDs that could start running in the future matter, but I > don't know why it matters what the latest completed XID is. Daniel, it seems to me that this thread is waiting for some input from you, based on the remarks of Tom and Robert. Are you planning to do so? This is marked as a bug fix, so I have moved this item to the next CF for now. -- Michael --wmjrBQvS+kd5AsLy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmNGTVIACgkQnvQgOdby QH1NZw/+LWKe4WStvJH2/037UH04+pM0XBEnkGc0sr0KOu6LoLzMoTgrPREpClEI mDPSFr/XFb9XJpRDeUn5/U7bgBYkRVu5EEu4PmEOyrXDHvrkRvLyjkGR2G+3SHmo 3f+e70UpQcmCvvNukr4z2EFOMy3WFTvHzgvqHlvT7Znf5vYJZdAVSIBeyj7FUWp1 UGEiiNLynLcuWjEihudekBdW/JvsZyZzV0cTsvG5wGXqQ+abAzO0ldDYnoUE/z+t EBBixgDML4WCEJCBKblD8wORAoJfU4RKKqNqRD/1OLka53rv1lfwSeRSEO0o8l3x RUioGQB08bP/gpMw9pUzjxFnwiEOTnQzM8KJ1X3UBvvyRGZBy1jmXhglacQR4Kpm tiI04sNRwWLiLfZY0JV0idR879dfeAiyeJamGqTgF1QBQwYKz7JBFZq4glEkoTDM dKpI4yHzl2YkTfkJfLAJ3SS3fn0ZTT+OPWtIedGGUTYkLE/zj9fwXwhubI0nfpZK EvmWNZwSEaEhmg7ImQTFf9rQQTKQoAz/zqwOlCUEjI5PnmTevshNY7i9oHWiY3wF HfzLSZjHuhkN7EMNGmLqx3HR3xSbaIkYt80tofyoIjolw/KtXsrrxrY3n9C1PD65 hSp597zQOBRzWy6M3miWYWkt00dhnD/OH3PdYvewiOLqRY8XoFQ= =2o2z -----END PGP SIGNATURE----- --wmjrBQvS+kd5AsLy--