Re: ABI Compliance Checker GSoC Project

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, "David E(dot) Wheeler" <david(at)justatheory(dot)com>, Mankirat Singh <mankiratsingh1315(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: ABI Compliance Checker GSoC Project
Date: 2025-09-12 17:46:16
Message-ID: 202509121737.dwr6wrqrqrga@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025-Sep-12, Tom Lane wrote:

> My concern is that when we get a report, we might decide to apply
> some fix to remove the ABI delta, or we might decide it's intentional
> and/or harmless and leave the code as-is. In the latter case, the
> ABI-checking BF animal(s) will be red until the next release is made,
> which helps nobody, particularly because it will probably interfere
> with noticing any ABI breaks in later commits.

The solution I propose for this (which I have mentioned before) is to
allow for our source tree to carry exclusion files. The ABI checker
would refrain from turning red for any breaks that match what's in those
files. For instance I think in branch REL_18_STABLE we would add a
subdirectory like
/src/tools/abicheck-exclude/18.1
where we would store one exclusion file that suppresses reporting for
each ABI-breaking change between 18.0 and 18.1. (Or maybe name the
subdir REL_18_1).

So when we break ABI compatibility after having 18.0 out and before
releasing 18.1, the animal turns red and we'd either add a file there
or fix the ABI break -- both of which turn the animal back to green.

It's somewhat equivalent to valgrind.supp, except the files are
version-specific.

--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"Once again, thank you and all of the developers for your hard work on
PostgreSQL. This is by far the most pleasant management experience of
any database I've worked on." (Dan Harris)
http://archives.postgresql.org/pgsql-performance/2006-04/msg00247.php

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2025-09-12 17:47:41 Re: POC: enable logical decoding when wal_level = 'replica' without a server restart
Previous Message Tom Lane 2025-09-12 17:44:32 Re: plan shape work