Re: age() function documentation

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: age() function documentation
Дата
Msg-id Pine.LNX.4.30.0104111847360.1201-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: age() function documentation  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Ответы Re: age() function documentation
Список pgsql-hackers
Thomas Lockhart writes:

> Why do you have a problem with the age() function? It *does* behave
> differently than date subtraction, as explicitly mentioned in the docs
> (preserving years, etc etc).

As you see in one of the examples I posted, it does not preserve years and
months.  What exactly does that mean anyway?  Simple subtraction also
preserves years and months, as I see it.

> Would we like some additional clarification in the docs perhaps? Seems
> to be preferable to dropping all mention, especially since it is a
> useful function.

By all means.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: age() function documentation
Следующее
От: Mark Butler
Дата:
Сообщение: Re: Index type promotion