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 1vEo6t-000zB2-Lg for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Oct 2025 12:20:03 +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 1vEo6s-00ETUX-3r for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Oct 2025 12:20:01 +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.94.2) (envelope-from ) id 1vEo6r-00ETUP-Bk for pgsql-hackers@lists.postgresql.org; Fri, 31 Oct 2025 12:20:00 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vEo6n-005FAP-1H for pgsql-hackers@lists.postgresql.org; Fri, 31 Oct 2025 12:20:00 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id B14671D00178; Fri, 31 Oct 2025 08:19:54 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 31 Oct 2025 08:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1761913194; x= 1761999594; bh=13p0xPtG7bN+vYaTHkxHas28F17wF1vnxfKy0n80884=; b=j LEfDEbJ0c8aMWQnjJjAsaEKC1qn9JkEsg6+4QqnGFOUf0ULaxYOPpx+kN2WKbh6X 3XbwHLryeHjDZZ6q6aL3vQQwSCWSEEDhB2ZCLnssrJUBegtidMGfPIabUEbafKI7 a9U/ZU9AxwSlfYkPr3DDOQ44JOWCQpHrEgydlfuQTCFsl7FeyJwhdIb/AMeDq50a HLXNBwi2dUxpMs6EzjNPlofbBiZ94jehr49xRGugL1iL8DGQrDW8En/Ms5eaYX2i ZnOW9GlO+MxmhtHD4FhUQPHZh3nA1ZPxUX4b4PEl+xIg7GpdXUuW1ZisE/aBE2WB gTmsxldzW1marGOuyiumA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1761913194; x=1761999594; bh=1 3p0xPtG7bN+vYaTHkxHas28F17wF1vnxfKy0n80884=; b=RlwULOw77sO96qvkG LC8+Zza6j51EQNUVPOq6qObLCh+jeA1TOuQCgAIPBwFPGaJwCa46JiXM/YTWhpLS CSum5KxyKiSRv/AqecNQ0QsvDMAZCo9qtlo/5zgQLx4zv6kxK3ydeuaDB6uzWSo0 hcVg8L67eGWK5E+0oaac4FTghCIK8cSXflD6PPCPyeSDcerHMrSzfP/UnnLzAGqz DknU8/wQzcroXsobVf9AwnVDwV64/6L+m4bA1O9HLW5YqHRiR/ALx+ozCy+hQVrS mOXGKNLfwwoJPNElGYnhS2jz/OtflkfkMpw1L4pY6gnQz9k276ztcdmo8mcX8Dkr Rs+qg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduieelgeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphht thhopegsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomhdprhgtph htthhopehhlhhinhhnrghkrgesihhkihdrfhhipdhrtghpthhtohepphhgshhqlhdqhhgr tghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehquhgrnhiiohhnghhl ihgrnhhgseihvggrhhdrnhgvth X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 31 Oct 2025 08:19:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1761913190; bh=UUnOo2TXjy4UZ5NZixz8N9rLNIa96VRaiNzNIoaZEms=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=3v1ltAj2SJeQIDjrnScNtcpMT1W3LEnhHi+SBFBAYpswQfwSSd3IHG5XmURZbLNoz QzsB8gUn8ItY84AbqcHEFgVuVl8gc4RZMoQWfNvUVAcAAaIy1oLedcTc7HvJO/hCa0 19Gi4Gr8FCG3ofgIhZ/6oXNgVsMe07rEeRX70Gg0kKh7hTtp6czrumKSwCe60hOm3q vM+zu7kuRbbIdgEbk8waSPlFo/17+B70W0zXxjO0qrfPcVA21JDxLXhIHvQBXGhQmf Yb9/SkOWK49lT5r+0zkTon9nIRo9XHwp/KJUYf+DuY4qZwKrxupsLbB4A8seemnb84 gKOCrISVQqUTg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 116EE76; Fri, 31 Oct 2025 14:19:50 +0200 (EET) Date: Fri, 31 Oct 2025 13:19:50 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Bertrand Drouvot Cc: Peter Eisentraut , Michael Paquier , Heikki Linnakangas , Quan Zongliang , pgsql-hackers@lists.postgresql.org Subject: Re: Consistently use the XLogRecPtrIsInvalid() macro Message-ID: <202510311047.5wm5fp2t23we@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Oct-31, Bertrand Drouvot wrote: > After giving it more thought, I'm inclined to postpone the compiler warning > until XLogRecPtrIsValid() has been available for some time. The question is for > how long? Maybe we can mark it so that it becomes obsolete in a future version, #if PG_VERSION_NUM >= 210000 [[obsolete]] #endif XLogRecPtrIsInvalid( .. ) so that people using it today won't get any noise, but once they do get the warning, the versions without the other macro are already out of support, so they can switch to the new one easily. (This presupposes that we'd add the new macro to older branches as well, which shouldn't be a problem.) Only extensions wishing to support PG versions older than we support would have to work slightly harder, but that should be OK. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "I dream about dreams about dreams", sang the nightingale under the pale moon (Sandman)