pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>
Cc: David E. Wheeler <david@justatheory.com>
Cc: Mankirat Singh <mankiratsingh1315@gmail.com>
Cc: pg@bowt.ie
Cc: andrew@dunslane.net
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: abi-compliance-check failure due to recent changes to pg_{clear,restore}_{attribute,relation}_stats()
Date: Mon, 20 Oct 2025 16:14:38 -0400
Message-ID: <368025.1760991278@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZ3f+-CQqWKSBc58w-8PD-77Fjc-Q9FWSubbOhXM5M03A@mail.gmail.com>
References: <78B81B37-9F27-4085-92DA-6B50DFC24361@justatheory.com>
	<CAOtk82QCHhWwO=zB-KFYch3JLf8Si4Bk77R_0cgsHjkwuhR9Vg@mail.gmail.com>
	<1957147.1760800489@sss.pgh.pa.us>
	<17DB0A6A-C967-48A8-B1C0-9A4F31C4F8EF@justatheory.com>
	<CAOtk82T=OO3e=SYPyHZq50wfyt569E6t=ee4b7va2y08M+a0SQ@mail.gmail.com>
	<F6567E02-23FD-455C-95D2-5CB076BC4E65@justatheory.com>
	<230647.1760971159@sss.pgh.pa.us>
	<aPZnY0Icgw1RGaGP@nathan>
	<334460.1760980024@sss.pgh.pa.us>
	<aPZt4b5beRPxjgI-@nathan>
	<aPZ_2a1EQvofxeci@nathan>
	<351026.1760988833@sss.pgh.pa.us>
	<CA+TgmoZ3f+-CQqWKSBc58w-8PD-77Fjc-Q9FWSubbOhXM5M03A@mail.gmail.com>

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





view thread (70+ messages)  latest in thread

Message-ID: <368025.1760991278@sss.pgh.pa.us>
Permalink:  ../368025.1760991278@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/368025.1760991278@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, nathandbossart@gmail.com, david@justatheory.com, mankiratsingh1315@gmail.com, 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: <368025.1760991278@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox