From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: array_agg versus repeated execution of aggregate final functions |
Date: | 2009-06-20 18:02:31 |
Message-ID: | 6922.1245520951@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> On Sat, Jun 20, 2009 at 1:31 PM, Tom Lane<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> There are basically two ways that we could respond to this:
>>
>> (1) Decide that the bug is array_agg_finalfn's, and make the necessary
>> fixes so that it doesn't modify or free its argument ArrayBuildState.
>> This would amount to legislating that aggregate final functions cannot
>> scribble on their inputs *ever*, rather than the compromise position
>> we thought we had adopted last fall, namely that they can do so when
>> called by an Agg node but not when called by WindowAgg.
> This definitely sounds like the right answer.
Yeah. On reflection, even if we tried to go with #2, we'd still need
half of the #1 fix for array_agg_finalfn --- the detoasting business is
a hazard for WindowAgg's usage anyway.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-06-20 19:40:58 | Re: 8.4 open item: copy performance regression? |
Previous Message | Merlin Moncure | 2009-06-20 17:38:05 | Re: array_agg versus repeated execution of aggregate final functions |