I wrote:
> Amit Langote <amitlangote09(at)gmail(dot)com> writes:
>> Maybe something like the attached?
> Probably needs some attention to memory management (e.g.,
> should_free_trig) but I'm okay with doing this as a short-term
> fix.
I fixed the should_free business, and spent a fair amount of time
convincing myself that no other code paths in trigger.c need this,
and pushed it.
regards, tom lane