Re: age() function?

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: age() function?
Дата
Msg-id 3C47CD7D.E684F17C@fourpalms.org
обсуждение исходный текст
Ответ на age() function?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
> > > How come 10 mons == 9 mons 30 days?
> > Because for purposes of comparisons, type interval assumes 1 month
> > == 30 days (cf. interval_cmp_internal).  Pretty grotty, I agree,
> > but it's not easy to see how to do better.
> Oh I see. Probably that's the reason why the standard does not allow
> month-and-day-mixed interval.

Right. I have it fall back to a fixed 30 days. Seems better than
disallowing it altogether...
                - Thomas


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: tuptoaster.c must *not* use SnapshotAny
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: tuptoaster.c must *not* use SnapshotAny