Re: age() function documentation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: age() function documentation
Date
Msg-id Pine.LNX.4.30.0104111847360.1201-100000@peter.localdomain
Whole thread Raw
In response to Re: age() function documentation  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Responses Re: age() function documentation
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: age() function documentation
Next
From: Mark Butler
Date:
Subject: Re: Index type promotion