Re: operator suggest " interval / interval = numeric"

From: "Brendan Jurd" <direvus(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Ilya А(dot) Кovalenko <shadow(at)oganer(dot)net>, pgsql-hackers(at)postgresql(dot)org, "Warren Turkal" <wturkal(at)gmail(dot)com>
Subject: Re: operator suggest " interval / interval = numeric"
Date: 2008-01-10 05:29:07
Message-ID: 37ed240d0801092129h69059374y6571d78eb5de74b8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jan 10, 2008 3:33 PM, Brendan Jurd <direvus(at)gmail(dot)com> wrote:
> 1 month is deemed equal to 30 days, 1 day is deemed equal to 24 hours
> (although for some reason we ignore the issue of years vs. days).
>

Sorry, a correction. The issue of years vs. days isn't ignored. A
year is just 12 months, which yields 12 * 30 = 360 days, which is
actually a pretty significant error (1.4% on average).

# select interval '1 year' = interval '360 days';
?column?
----------
t
(1 row)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Warren Turkal 2008-01-10 05:38:31 Re: operator suggest " interval / interval = numeric"
Previous Message Warren Turkal 2008-01-10 05:17:15 flex/bison output wrongly created in the source directory