Re: No stddev() for interval?

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

"Ivan Zolotukhin" <ivan(dot)zolotukhin(at)gmail(dot)com> writes:
> On 5/20/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> 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?

> Strictly speaking there's nothing bad in intervals. Physically
> standart deviation on interval can be very useful without any doubts.

If the intervals are all expressed in seconds then sure, the calculation
is straightforward and useful. I'm wondering what happens when nonzero
values of days and months get in there.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

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