Re: age() function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: age() function?
Date: 2002-01-18 05:11:12
Message-ID: 4343.1011330672@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-01-18 05:12:23 Re: tuptoaster.c must *not* use SnapshotAny
Previous Message Hiroshi Inoue 2002-01-18 05:10:15 Re: tuptoaster.c must *not* use SnapshotAny