On Fri, Sep 22, 2023 at 3:49 PM Ashutosh Bapat <ashutosh.bapat....@gmail.com> wrote: > > On Thu, Sep 21, 2023 at 7:21 PM Ashutosh Bapat > <ashutosh.bapat....@gmail.com> wrote: > > > Hence I have changed interval_avg_deserialize() in 0007 to use > CurrentMemoryContext instead of aggcontext. Rest of the patches are > same as previous set. > > -- > Best Wishes, > Ashutosh Bapat
/* TODO: Handle NULL inputs? */ since interval_avg_serialize is strict, so handle null would be like: if (PG_ARGISNULL(0)) then PG_RETURN_NULL();