Re: No stddev() for interval?
От | Nikolay Samokhvalov |
---|---|
Тема | Re: No stddev() for interval? |
Дата | |
Msg-id | e431ff4c0605201521t7fa65934t53e1e6025739d76c@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: No stddev() for interval? ("Brendan Jurd" <direvus@gmail.com>) |
Ответы |
Re: No stddev() for interval?
|
Список | pgsql-general |
On 5/21/06, Brendan Jurd <direvus@gmail.com> wrote: > > Well if you're willing to accept that for the purposes of computing the > aggregates, an interval "month" is equal to 30 days (which is how > avg(interval) already works), then an interval is reducable to a single > quantity -- a number of seconds -- which can be squared. > Let me make a correction. Internally, intervals are stored as separate values of months and days (and even seconds, for daylight saving purposes). So, in almost all cases everything is OK. But it isn't so when we should multiply or devide such 'hetorogenious intevals' ("select interval '1 month 1 day';" gives us '15 days 12:00:00')... -- Best regards, Nikolay
В списке pgsql-general по дате отправления: