Search Postgresql Archives

Re: Freeing transient memory in aggregate functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21/12/2021, at 10:25 AM, Tom Lane <tgl@xxxxxxxxxxxxx> 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@

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux