BUG #1332: wrong results from age function

PostgreSQL Bugs List <pgsql-bugs@postgresql.org>

From: "PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>
To: pgsql-bugs@postgresql.org
Date: 2004-11-29T11:37:50Z
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      1332
Logged by:          Robert Grabowski

Email address:      grabba@env.pl

PostgreSQL version: 7.4.6

Operating system:   Linux

Description:        wrong results from age function

Details: 

select age('2004-02-01'::date, '2004-01-01'::date);
  age
-------
 1 mon
(1 row)

select age('2004-03-01'::date, '2004-02-01'::date);
   age
---------
 29 days
(1 row)

I think, it should be "1 mon".