Interval subtracting - Mailing list pgsql-sql

From Milorad Poluga
Subject Interval subtracting
Date
Msg-id 200602181444.06009.milorad.poluga@cores.co.yu
Whole thread Raw
Responses Re: Interval subtracting  ("Milen A. Radev" <milen@radev.net>)
List pgsql-sql
Hi all,

Is there something incorrect in the above query ? 
SELECT '10 years 1 mons 1 days'::interval - '9 years 10 mons 15 days'::interval
?column?        --------------- 3 mons -14 days 

Why not '2 mons  16 days' ? 

/version =  PostgreSQL 8.0.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) /

Thanks a lot,
Milorad Poluga
-------------------------------
milorad.poluga@cores.co.yu



pgsql-sql by date:

Previous
From: Greg Stark
Date:
Subject: Re: Tough Problem -- Record Checkouts
Next
From: "Milen A. Radev"
Date:
Subject: Re: Interval subtracting