Re: Statistical aggregate functions are not working with PARTIAL aggregation
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
From: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
To: andrew.dunstan@2ndquadrant.com
Cc: stark@mit.edu, rajkumar.raghuwanshi@enterprisedb.com,
pgsql-hackers@postgresql.org
Date: 2019-05-09T05:18:14Z
Lists: pgsql-hackers
Attachments
- 0001-Always-put-sentinel-in-allocated-memory-blocks.patch (text/x-patch)
At Thu, 09 May 2019 11:17:46 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> wrote in <20190509.111746.217492977.horiguchi.kyotaro@lab.ntt.co.jp> > Valgrind doesn't detect the overruning read since the block > doesn't has 'MEMNOACCESS' region, since the requested size is > just 64 bytes. > > Thus the attached patch let valgrind detect the overrun. So the attached patch makes palloc always attach the MEMNOACCESS region and sentinel byte. The issue under discussion is detected with this patch either. (But in return memory usage gets larger.) regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Minimally fix partial aggregation for aggregates that don't have one argument.
- 9fea0b0e287e 11.4 landed
- 2657283256f1 12.0 landed
-
Change function call information to be variable length.
- a9c35cf85ca1 12.0 cited