On 21/12/2021, at 10:25 AM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Not quite like that. Look into nodeAgg.c, which solves a similar problem > for the transvalues themselves with code like > > /* forget the old value, if any */ > if (!oldIsNull && !pertrans->inputtypeByVal) > pfree(DatumGetPointer(oldVal));
Oh great, thanks for the tip! — m@