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

From Tom Lane
Subject Re: proposal: tuplestore, tuplesort aggregate functions
Date
Msg-id 27029.1282249290@sss.pgh.pa.us
Whole thread Raw
In response to Re: proposal: tuplestore, tuplesort aggregate functions  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: proposal: tuplestore, tuplesort aggregate functions  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> You've made this assertion at least three times now, but I confess
> that I've only ever learned one way to compute a median; and quick
> Google searches for "median", "kinds of median", and few other
> variants failed to turn up anything obvious either.

There are different ways to define it when the number of samples is even.
However I believe that "use the mean of the two middle values" is much
the most common way to deal with that.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: proposal: tuplestore, tuplesort aggregate functions
Next
From: Robert Haas
Date:
Subject: Re: proposal: tuplestore, tuplesort aggregate functions