BUG #1332: wrong results from age function - Mailing list pgsql-bugs

From PostgreSQL Bugs List
Subject BUG #1332: wrong results from age function
Date
Msg-id 20041129113750.3543A7385D6@www.postgresql.com
Whole thread Raw
Responses Re: BUG #1332: wrong results from age function
List 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".

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1331: after update: vacuum blocks parallel to select
Next
From: Tom Lane
Date:
Subject: Re: BUG #1331: after update: vacuum blocks parallel to select