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

From Thomas Lockhart
Subject Re: age() function?
Date
Msg-id 3C47CD7D.E684F17C@fourpalms.org
Whole thread Raw
In response to age() function?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
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.

Right. I have it fall back to a fixed 30 days. Seems better than
disallowing it altogether...
                - Thomas


pgsql-hackers by date:

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