Skip site navigation (1) Skip section navigation (2)

Re: wip: functions median and percentile

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, David Fetter <david(at)fetter(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wip: functions median and percentile
Date: 2010-10-11 18:27:13
Message-ID: AANLkTintEz0aPx4pg3c_Y7n6kkfMdgV6gixB_je4fTHf@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-rrreviewers
On Sun, Oct 10, 2010 at 2:16 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> It was pointed out upthread that while median isn't presently
> in the standard, Oracle defines it in terms of percentile_cont(0.5)
> which *is* in the standard.

Uhmm, then why don't we implement that? We could provide median() as a
short-cut but percentile_cont() doesn't sound much harder to implement
than median() and more general.

-- 
greg

In response to

Responses

pgsql-hackers by date

Next:From: Josh BerkusDate: 2010-10-11 18:30:39
Subject: Re: wip: functions median and percentile
Previous:From: Dean RasheedDate: 2010-10-11 18:23:25
Subject: Re: wip: functions median and percentile

pgsql-rrreviewers by date

Next:From: Josh BerkusDate: 2010-10-11 18:30:39
Subject: Re: wip: functions median and percentile
Previous:From: Dean RasheedDate: 2010-10-11 18:23:25
Subject: Re: wip: functions median and percentile

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group