Re: Summing of INTERVAL returns incorrect number of days and hours

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Summing of INTERVAL returns incorrect number of days and hours
Дата
Msg-id 346945.1743517176@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Summing of INTERVAL returns incorrect number of days and hours  (Milan Novotny <xnovm149@gmail.com>)
Список pgsql-bugs
Milan Novotny <xnovm149@gmail.com> writes:
> 581 days 61:06:36.805|
> --> should be 583 days ..

If you don't like that result, justify_hours() might help you.
But interval summing doesn't assume that it can always overflow
seconds into days, because a day isn't always 24 hours.

            regards, tom lane



В списке pgsql-bugs по дате отправления: