Re: abi-compliance-check failure due to recent changes to pg_{clear,restore}_{attribute,relation}_stats()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>,
"David E. Wheeler" <david@justatheory.com>,
Mankirat Singh <mankiratsingh1315@gmail.com>, pg@bowt.ie,
andrew@dunslane.net, pgsql-hackers@lists.postgresql.org
Date: 2025-10-20T20:14:38Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > On Mon, Oct 20, 2025 at 3:34 PM Tom Lane <tgl@sss.pgh.pa.us> 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
Commits
-
Add commit 24f6c1bd4 to v17 .abi-compliance-history.
- 5c659da980e1 17.7 landed
-
Add .abi-compliance-history to back-branches.
- eaf73340cd46 16.11 landed
- d9c5e7129d2b 15.15 landed
- a91f2d822522 17.7 landed
- 7d47278933f4 13.23 landed
- 58ba7e5ebfdf 14.20 landed
-
Add reminder to create .abi-compliance-history.
- b97d8d843a2d 19 (unreleased) landed
-
Update .abi-compliance-history file.
- 93fb76ca4e69 18.1 landed
-
Add .abi-compliance-history to v18 branch.
- a72f7d97bea9 18.1 landed
-
Fix thinko in commit 7d129ba54.
- 399a9e04e549 18.1 cited
-
Fix lookups in pg_{clear,restore}_{attribute,relation}_stats().
- c8af5019bee5 18.1 cited
- 688dc6299a5b 19 (unreleased) cited
-
Add defenses against unexpected changes in the NodeTag enum list.
- eea9fa9b250f 16.0 cited