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 1vLlNT-009W3S-0D for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Nov 2025 16:49:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vLlNP-00Dupl-2Z for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Nov 2025 16:49:52 +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 1vLlNP-00Dupd-0e for pgsql-hackers@lists.postgresql.org; Wed, 19 Nov 2025 16:49:51 +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.96) (envelope-from ) id 1vLlNL-000ONT-1H for pgsql-hackers@lists.postgresql.org; Wed, 19 Nov 2025 16:49:51 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id B61E2EC0406; Wed, 19 Nov 2025 11:49:44 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 19 Nov 2025 11:49:44 -0500 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=fm2; t=1763570984; x= 1763657384; bh=Eq+jaTNgUPaqW66GJMnu8OeUoZnws0Q+YLGq+tr78uM=; b=x 3VjkOjhZDi/xTrjw4y4blMNdqI9xEflF30gj7GCc1Vq6cBR8H0W4YIqv/yfHWw+J 3keYDrZndhYSD9MxV0Az8GOF6lJR/jpc+FymAH5zyaY8/v+V1291r+cz0Qh/sYin 4DMtzBBIF+KjImz/9xC36/ho+kID3Aod9PtDondWJSa4nKuOIMikBWjRAb5y1K0T ti/ZymH6MTfd14YtivcKga78Ltg97NfOLzseLdfgydMGxy1RmOa3QXvGWc7D4dgD 0dy5I2Se12wsyNLmu4+ia7VNQuvaQRLtsozTg7OkbqKCmnBss+cE3bYyz4q3so6w ucj4X6rtIvmDRPtUNas1w== 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=1763570984; x=1763657384; bh=E q+jaTNgUPaqW66GJMnu8OeUoZnws0Q+YLGq+tr78uM=; b=GPiwbh2N+jKJhpm4k FqapUQssS2mGvl/Ob2hLA8hILAY8zvrnyGSg+u96jyOEHejN8HnSCtX0yfcFdpi1 ny1WS/yIsyfGEGYQgSCXzt0oaEiIVRz9pHPrTpyy4oCqBEn90n3k17HlIPcQjLBL FYS9TcByPOPP3YqiIVHOI+TvZnmuu5ombraUxbcMTLJwLE3wZ5K2KPwSieuKZs8+ SXgFN+ICSJHtkzY1pUjumFbEV8NUmX0n99QOAx0+gcq/WVpcCGdzQVm7ZQkhdyX8 aH0pj7IDL7Mv20o9fxbe5ibEtjMc8YiFpyo0IYjcxeeQ6lEJdhHBsD/Qxt8twNbS EF93A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvdegjedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeejpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphht thhopegsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomhdprhgtph htthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhl ihhnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhsse hlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehmihgthhgrvghl sehprghquhhivghrrdighiiipdhrtghpthhtohepqhhurghniihonhhglhhirghngheshi gvrghhrdhnvght X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Nov 2025 11:49:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1763570982; bh=6EzBjA3ysjNASeEw7qROP2/YL0KLaYBzi+WcpQXWtFg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Dbu79XATVMgBqBbs4V3lEXkFUgXbhy6O/KTHYY/tCc5BVQogOZ5Pe6IalSEBvx/uU kLCkelk/uXtZ9Jy1vpyaO0i6UI32+iAjmihtnRdYGH0NdNdZd+RyEvuYq2gXjS0CkM 8GfVsCu97l7ZyABLUv2R5qUoAKI7v10E1r0NwRljxqvW7084a1tGPmMSuliF2mEqNI /T/cVdiBagjwRdi1vtLUWnSRMbgTa0l/piSyUNpzlFSMfzDtF8Zke8sSDgkizmvKuJ uw2e0EO1Sp1lkXpR0Rgv/5n3yhc4/9DTVgNLQj2fy1xrO8VlFcORAaoE1rBvRWdChS AJJukOBh5y9jw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 0F7DB76; Wed, 19 Nov 2025 17:49:42 +0100 (CET) Date: Wed, 19 Nov 2025 17:49:42 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Robert Haas Cc: Bertrand Drouvot , Peter Eisentraut , Michael Paquier , Heikki Linnakangas , Quan Zongliang , pgsql-hackers@lists.postgresql.org Subject: Re: Consistently use the XLogRecPtrIsInvalid() macro Message-ID: <202511191638.v3iyak6r46t2@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-Nov-19, Robert Haas wrote: > On Thu, Nov 6, 2025 at 2:48 PM Álvaro Herrera wrote: > > Okay, thanks, I have applied that one to all stable branches, except > > I didn't add the judgemental comment about XLogRecPtrIsInvalid(). > > I'm rather late to the party here, but for what it's worth, I don't > really think this was a good idea. Anyone who wants to write > out-of-core code that works in the back-branches must still write it > the old way, or it will potentially fail on older minor releases. No, they don't need to. Thus far, they can still keep their code the way it is. The next patch in the series (not yet committed, but I intend to get it out at some point, unless there are objections) is going to add an obsolescence warning when their code is compiled with Postgres 21 -- by which time the minors without the new macro are going to be two years old. Nobody needs to compile their code with minor releases that old. So they can fix their code to work with Postgres 21 and with all contemporary minors. They don't need to ensure that their code compiles with minors older than that. We could make that Postgres 22, but I don't think that makes any practical difference. Maybe you misunderstood what the patch is doing. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/