Re: Sharing aggregate states between different aggregate functions

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Sharing aggregate states between different aggregate functions
Date: 2015-07-09 09:44:11
Message-ID: CAKJS1f86DVFj1S-ikSfppve5GqF5AWjUiZgvS=xydwj-82Tkmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15 June 2015 at 12:05, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> wrote:

>
> This basically allows an aggregate's state to be shared between other
> aggregate functions when both aggregate's transition functions (and a few
> other things) match
> There's quite a number of aggregates in our standard set which will
> benefit from this optimisation.
>
>
After compiling the original patch with another compiler, I noticed a
couple of warnings.

The attached fixes these.

Regards

David Rowley

--
David Rowley http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
sharing_agg_states_5f0bff89_2015-07-09.patch application/octet-stream 47.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2015-07-09 10:18:14 Re: Transactions involving multiple postgres foreign servers
Previous Message Andres Freund 2015-07-09 08:41:48 Re: copy.c handling for RLS is insecure