Re: proposal: tuplestore, tuplesort aggregate functions - Mailing list pgsql-hackers

From David Fetter
Subject Re: proposal: tuplestore, tuplesort aggregate functions
Date
Msg-id 20100818142452.GB15385@fetter.org
Whole thread Raw
In response to Re: proposal: tuplestore, tuplesort aggregate functions  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: tuplestore, tuplesort aggregate functions
Re: proposal: tuplestore, tuplesort aggregate functions
List pgsql-hackers
On Wed, Aug 18, 2010 at 04:10:18PM +0200, Pavel Stehule wrote:
> 2010/8/18 David Fetter <david@fetter.org>:
> > Which median do you plan to implement?  Or do you plan to implement
> > several different medians, each with distinguishing names?
> 
> my proposal enabled implementation of any "median like" function. But
> if we implement median as special case of aggregate, then some basic
> "median" will be implemented.

Apart from the medians, which "median-like" aggregates do you have in
mind to start with?  If you can provide examples of "median-like"
aggregates that people might need to implement as user-defined
aggregates, or other places where people would use this machinery, it
will make your case stronger for this refactoring.

Otherwise, it seems like a more reasonable thing to make the medians
special case code.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: tuplestore, tuplesort aggregate functions
Next
From: Tom Lane
Date:
Subject: Re: proposal: tuplestore, tuplesort aggregate functions