Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2023-Apr-04, Tom Lane wrote:
>> I'm inclined to think that in the older branches (pre f4566345c)
>> we need to do
>> - if (oldtrig->tgisinternal)
>> + if (oldtrig->tgisinternal && !OidIsValid(oldtrig->tgparentid))
>> but I've not tested that. Alvaro, what do you think?
> Oh, that's a nice and clean solution. I tested it (on 13 and 14) and it
> does solve the problem, and no regression tests fail, but I didn't try
> to break it further. 12 and back are unaffected, for lack of
> 86f575948c77.
Pushed, thanks for looking at it.
regards, tom lane