BUG #4878: function age() give a wrong interval - Mailing list pgsql-bugs

From
Subject BUG #4878: function age() give a wrong interval
Date
Msg-id 200906250928.n5P9SoZg015973@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #4878: function age() give a wrong interval  (Frank Heikens <frankheikens@mac.com>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4878
Logged by:
Email address:      pamelant@companeo.com
PostgreSQL version: 8.2.4, 8.3.6
Operating system:   linux
Description:        function age() give a wrong interval
Details:

age() report a wrong interval in some case

example

intervall between the 2 dates is 1008 hours

select age('2009-06-23 18:36:05.064066+02' ,'"2009-05-12 18:36:05.064066
+02"') > interval '1000 hours';

result is false instead of true.
There is a 24 hours error in the age() results

regards

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: psql: FATAL: the database system is in recovery mode
Next
From: Frank Heikens
Date:
Subject: Re: BUG #4878: function age() give a wrong interval