Re: BUG #19380: Transition table in AFTER INSERT trigger misses rows from MERGE when used with INSERT in a CTE

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>, dwwoelfel@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-01-24T17:27:35Z
Lists: pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> On 2026-01-24 10:58:40 -0500, Tom Lane wrote:
>> I find it unhelpful that it reported the AfterTriggersTableData
>> change as an ABI change, even though that struct is not globally
>> accessible.  I wonder if there's some libabigail switches we
>> should be tweaking to refine that.

> Specifying --headers-dir ... during abidw seems to do the trick.

Yeah, I was just experimenting with that.  It's pretty unclear
from the abigail docs whether you have to name all the header
directories explicitly or it's enough to point at the top one ...
but experimentation says the top one is enough.

I'll send Andrew a patch.

			regards, tom lane



Commits

  1. Update .abi-compliance-history for change to TransitionCaptureState.

  2. Fix trigger transition table capture for MERGE in CTE queries.