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

From Tatsuo Ishii
Subject Re: age() function?
Date
Msg-id 20020118143857E.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: age() function?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> > How come 10 mons == 9 mons 30 days?
> 
> Because for purposes of comparisons, type interval assumes 1 month
> == 30 days (cf. interval_cmp_internal).  Pretty grotty, I agree,
> but it's not easy to see how to do better.

Oh I see. Probably that's the reason why the standard does not allow
month-and-day-mixed interval.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: tuptoaster.c must *not* use SnapshotAny
Next
From: Jan Wieck
Date:
Subject: Re: tuptoaster.c must *not* use SnapshotAny