Re: [PATCH] Negative Transition Aggregate Functions (WIP) - Mailing list pgsql-hackers

From David Rowley
Subject Re: [PATCH] Negative Transition Aggregate Functions (WIP)
Date
Msg-id CAApHDvrabeMqgEa1u-dx0yv04SftH_fQBB+N6qvhDLm2KiJA0Q@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Negative Transition Aggregate Functions (WIP)  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: [PATCH] Negative Transition Aggregate Functions (WIP)  ("Erik Rijkers" <er@xs4all.nl>)
List pgsql-hackers
On Fri, Dec 27, 2013 at 1:36 AM, David Rowley <dgrowleyml@gmail.com> wrote:
From what I can tell adding an inverse transition function to support AVG for numeric does not affect the number of trailing zeros in the results, so I've attached a patch which now has inverse transition functions to support numeric types in AVG and all of the STDDEV* aggregates. 

here's a slightly updated patch in which I've fixed up an comment that had become out-dated because of the patch. I also changed the wording in quite a few of my comments and made some changes to the docs. The only other change was an extra error check just in case window_gettupleslot was to fail to get a tuple that should always be in the tuple store.

I'm now classing the patch is not WIP anymore. I think it's ready for the commitfest.

Regards

David Rowley
Attachment

pgsql-hackers by date:

Previous
From: Christian Kruse
Date:
Subject: Re: Patch: show relation and tuple infos of a lock to acquire
Next
From: David Rowley
Date:
Subject: [PATCH] Remove some duplicate if conditions