On 6 June 2018 at 00:45, Andres Freund <and...@anarazel.de> wrote: > On 2018-06-05 09:35:13 +0200, Tomas Vondra wrote: >> I wonder if an aggregate might use a custom context >> internally (I don't recall anything like that). The accounting capability >> seems potentially useful for other places, and those might not use AllocSet >> (or at least not directly). > > Yea, that seems like a big issue.
Unfortunately, at least one of the built-in ones do. See initArrayResultArr. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services