Re: [PATCH] Negative Transition Aggregate Functions (WIP)

From: Florian Pflug <fgp(at)phlo(dot)org>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kevin Grittner <kgrittn(at)ymail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Greg Stark <stark(at)mit(dot)edu>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Negative Transition Aggregate Functions (WIP)
Date: 2014-01-24 13:30:53
Message-ID: 19C045E2-F162-4F37-BAE3-A1D7B172B6E0@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jan24, 2014, at 08:47 , Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> wrote:
> I think it should probably be broken up. It might be overly ambitious
> to try to get all of this committed during this commitfest, and in any
> case, I suspect that the committer would probably choose to commit it
> in stages. Perhaps something like:
>
> Patch 1
> - Basic support for inverse transition functions, CREATE AGGREGATE
> support and doc updates. This should include test cases to validate
> that the underlying executor changes are correct, by defining custom
> aggregates such as sum(int) and array_agg() using inverse transition
> functions.
>
> Patch 2
> - Add built-in inverse transition functions for count, sum(int), and friends.
>
> Patch 3, 4...
> - Other related groups of built-in aggregates. By this point, it
> should be a fairly mechanical process.
>
> Splitting it up this way now should help to focus on getting patch 1
> correct, without being distracted by all the other aggregates that may
> or may not usefully be made to have inverse transition functions. I
> think the value of the feature has been proved, and it is good to see
> that it can be applied to so many aggregates, but let's not try to do
> it all at once.

Working on that now, will post individual patches later today.

best regards,
Florian Pflug

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message MauMau 2014-01-24 13:31:17 Re: [9.3 bug] disk space in pg_xlog increases during archive recovery
Previous Message Marco Atzeri 2014-01-24 12:50:08 Re: Postgresql for cygwin - 3rd