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 1vAwHH-007yoI-KR for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Oct 2025 20:14:46 +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 1vAwHG-003lx1-H9 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Oct 2025 20:14:45 +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 1vAwHG-003lwt-7G for pgsql-hackers@lists.postgresql.org; Mon, 20 Oct 2025 20:14:45 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vAwHD-002qjh-20 for pgsql-hackers@lists.postgresql.org; Mon, 20 Oct 2025 20:14:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 59KKEcNp368026; Mon, 20 Oct 2025 16:14:38 -0400 From: Tom Lane To: Robert Haas cc: Nathan Bossart , "David E. Wheeler" , Mankirat Singh , pg@bowt.ie, andrew@dunslane.net, pgsql-hackers@lists.postgresql.org Subject: Re: abi-compliance-check failure due to recent changes to pg_{clear,restore}_{attribute,relation}_stats() In-reply-to: References: <78B81B37-9F27-4085-92DA-6B50DFC24361@justatheory.com> <1957147.1760800489@sss.pgh.pa.us> <17DB0A6A-C967-48A8-B1C0-9A4F31C4F8EF@justatheory.com> <230647.1760971159@sss.pgh.pa.us> <334460.1760980024@sss.pgh.pa.us> <351026.1760988833@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 20 Oct 2025 15:55:26 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <368024.1760991278.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 20 Oct 2025 16:14:38 -0400 Message-ID: <368025.1760991278@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Mon, Oct 20, 2025 at 3:34 PM Tom Lane wrote: >> BTW, not critical right now, but thought I'd mention it: ISTM >> this mechanism obviates the need for the single-purpose NodeTag ABI >> checks installed by commit eea9fa9b2. > Hmm, but: the code in gen_node_support.pl would tell you about trouble > before you committed, whereas the ABI checks would only tell you about > trouble after you commit. It seems to me that we are in desperate need > of reducing, rather than increasing, the number of mistakes you can > make and find out about only after commit. There are enough other ways to break ABI that I don't think catching just this one before commit will move the needle for anyone. Instead, the mistake I'm hoping to eliminate here is forgetting to arm the NodeTag ABI check, or doing it wrong. I do take your point that being able to find things before commit is helpful. But I think the answer to that is to get this general-purpose ABI check mechanism sufficiently well product-ized that committers can run it locally if they choose. Ideally we'd have multiple BF animals running it, so there's definitely motivation to get it at least to the point where it doesn't require hand-feeding by BF owners. (If memory serves, we've had ABI breaks that affected only 32 bit or only 64 bit machines, and of course there's the possibility of ones that only manifest with particular feature selections. So I'm not content with just one animal running it.) regards, tom lane