Re: No stddev() for interval?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brendan Jurd" <direvus(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: No stddev() for interval?
Date: 2006-05-20 16:05:36
Message-ID: 10646.1148141136@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Brendan Jurd" <direvus(at)gmail(dot)com> writes:
> I noticed a peculiarity in the default postgres aggregate functions. min()=
> ,
> max() and avg() support interval as an input type, but stddev() and
> variance() do not.

> Is there a rationale behind this, or is it just something that was never
> implemented?

Is it sensible to calculate standard deviation on intervals? How would
you handle the multiple components? I mean, you could certainly define
*something*, but how sane/useful would the result be?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Zolotukhin 2006-05-20 16:20:17 Re: No stddev() for interval?
Previous Message Brendan Jurd 2006-05-20 15:14:15 No stddev() for interval?