Re: BUG #4878: function age() give a wrong interval

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4878: function age() give a wrong interval
Дата
Msg-id 20021.1245938608@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4878: function age() give a wrong interval  ("Philippe Amelant" <pamelant@companeo.com>)
Список pgsql-bugs
"Philippe Amelant" <pamelant@companeo.com> writes:
> In the first case you have a month with 31 days and in the second you
> have a month with 30 days

The interval comparisons have no way to know that, so they arbitrarily
assume that '1 month' is equivalent to '30 days'.  This isn't going to
be changed.  If you don't like it, don't use age().  A plain old
timestamp subtraction will probably provide behavior that's closer to
what you want.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #4879: bgwriter fails to fsync the file in recovery mode
Следующее
От: "Andreas Wenk"
Дата:
Сообщение: BUG #4881: KDE 4.2 not running any more when installing one click installer from Enterprise DB