justify_interval: days in year

Поиск
Список
Период
Сортировка
От Ilya Ashchepkov
Тема justify_interval: days in year
Дата
Msg-id 20141110150748.2ee99776@moni.nskavd.local
обсуждение исходный текст
Ответы Re: justify_interval: days in year  (Francisco Olarte <folarte@peoplecall.com>)
Список pgsql-general
Hello!

Is this correct?
$ select
  justify_interval(t-f-i)
  ,t-f-i
from
  (
    select
      timestamp '2014-1-1' as f,
      timestamp '2015-1-1' as t,
      interval '06:49:00' as i
  ) S;

    justify_interval    |      ?column?
------------------------+--------------------
 1 year 4 days 17:11:00 | 365 days -06:49:00

Why do we have 360 days in a year?

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Query Plans on Slaves
Следующее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Strange avg value size for index on expression in pg_stats