Re: No stddev() for interval? - Mailing list pgsql-general

From Tom Lane
Subject Re: No stddev() for interval?
Date
Msg-id 10646.1148141136@sss.pgh.pa.us
Whole thread Raw
In response to No stddev() for interval?  ("Brendan Jurd" <direvus@gmail.com>)
Responses Re: No stddev() for interval?  ("Ivan Zolotukhin" <ivan.zolotukhin@gmail.com>)
List pgsql-general
"Brendan Jurd" <direvus@gmail.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

pgsql-general by date:

Previous
From: "Brendan Jurd"
Date:
Subject: No stddev() for interval?
Next
From: "Ivan Zolotukhin"
Date:
Subject: Re: No stddev() for interval?