Re: Spilling hashed SetOps and aggregates to disk - Mailing list pgsql-hackers

From David Rowley
Subject Re: Spilling hashed SetOps and aggregates to disk
Date
Msg-id CAKJS1f94FsCbV0fqvT-tTP4F50JG0uVN7-+rZ1ddwunn7qU9Qw@mail.gmail.com
Whole thread Raw
In response to Re: Spilling hashed SetOps and aggregates to disk  (Andres Freund <andres@anarazel.de>)
Responses Re: Spilling hashed SetOps and aggregates to disk
List pgsql-hackers
On 6 June 2018 at 00:45, Andres Freund <andres@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


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Spilling hashed SetOps and aggregates to disk
Next
From: Dmitry Dolgov
Date:
Subject: Re: why partition pruning doesn't work?