From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: age() function? |
Date: | 2002-01-18 05:54:09 |
Message-ID: | 200201180554.g0I5s9R23085@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> > 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.
I guess if we knew the month we could do better. :-)
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2002-01-18 06:06:11 | Re: tuptoaster.c must *not* use SnapshotAny |
Previous Message | Bruce Momjian | 2002-01-18 05:53:25 | Re: tuptoaster.c must *not* use SnapshotAny |