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 1tYoXP-00FW33-JN for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 15:45:36 +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 1tYoXN-000vmo-TO for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 15:45:34 +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 1tYoXN-000vmg-0a for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 15:45:34 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tYoXL-0002kb-00 for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 15:45:32 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2A43511400A9; Fri, 17 Jan 2025 10:45:30 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Fri, 17 Jan 2025 10:45:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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=1737128730; x=1737215130; bh=h4ixBralsE kqxUEBuliATieQAzrPjVKob6wen2eTnmw=; b=ChdYDnMl0zXxl0Ge0rlcZV2xHF 4LbeCEULr10vopnSAI204wY4oydpI5rAtxKqs54gDlgm8CtDDGfU+6xe+DfDBcsI ZosXwY1YGeHhhByZUsCFVcFpW2qbve4O9xfjC9UD+IB1JyiBFriWCcbjRkqDAEYw r/7rf8U7Ejftdu4DarNx3jfnCceRysGUDWxC8j6o++DWuLHzWhgd+xQ3ERdpHNw8 rZh9J2eXDMlQW0Zl4jr2sMgWv1jbPbh0jclftXBMo1M9yU+T26Z9LvweBWJTbToJ /wcabNcwEUGI7ni0J3BND4XiVV7a7Re1GAwdEF4FWlGSjFrqsUk88uofkx8w== 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= 1737128730; x=1737215130; bh=h4ixBralsEkqxUEBuliATieQAzrPjVKob6w en2eTnmw=; b=UUtxbZtGSSzcm1UgZsmx9ZLOo9/GnrG8x0zZjIzm9ufVcHDuvUw hDoCXZy4Y69TzZCeRfX75emfeJ8BYy5m0aWBzNY8PmwyhJoAgWg0vm15JX3RuBJ7 ekkR3R6hXn+PvbhSkf8jNeAQIHn1JOBSdl1rrNZ7i/oYxVvPEZWO6jDA1+RMfAux fliv5iUKoI7cPIe1kEb6UbzwHlWimWN6ZxACHsRemrM+xpALaREp7LLmW1LYjk21 Vqn9+atmLSADvMdUJ++azyK4lPmnKXNUeFNnCrJrwBcHAxaYY1Db+fHSbyGKBMfe Sx+tAB2AA4gmuws+5Fp/QBcUHhcXks6Ajgg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeifedgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvden ucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivg hlrdguvgeqnecuggftrfgrthhtvghrnhephfdthfefheeggfettedvfeeufeegvdfhgeel keeifeettdevvddtueetffeiueeknecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr nhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepvddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdr phhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuih gvrhdrgiihii X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Jan 2025 10:45:29 -0500 (EST) Date: Fri, 17 Jan 2025 10:45:28 -0500 From: Andres Freund To: Michael Paquier Cc: Postgres hackers Subject: Re: Remove XLogRecGetFullXid() in xlogreader.c? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2025-01-17 14:00:49 +0900, Michael Paquier wrote: > XLogRecGetFullXid() has been introduced in 67b9b3ca3283 back in 2019, > but as far as I can see this has never been used in the code and this > is used nowhere in the core code. > > I have looked at Debian's codesearch and also looked at traces of it > on github without seeing it being used anywhere. Knowing that this > was originally intended for a hypothetical undo log patch back then, > for which no work has been done for years, is there any point in > keeping this function in core? > > This issue has been raised on a separate thread, where Noah has sent a > patch to consolidate a bit some epoch calculations for > FullTransactionIds, around here: > https://www.postgresql.org/message-id/Z4i6MbUlZxjK1rRh@paquier.xyz > > Removing it would have the benefit to do a bit less refactoring for > some of the work of the other thread, and this removes all traces of > -DFRONTEND in xlogreader.h. ;) -0.5 I think it is sensible infrastructure and we'll eventually end up using it. The cost of having it fairly low. If it were a legacy thing that we shouldn't introduce new users for it'd be a different story, but it's the opposite. Greetings, Andres