Re: make_interval ?? - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: make_interval ??
Date
Msg-id 52B4E8DA.4070506@agliodbs.com
Whole thread Raw
In response to make_interval ??  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: make_interval ??
List pgsql-hackers
On 12/20/2013 04:44 PM, Gavin Flower wrote:
> On 21/12/13 13:40, Josh Berkus wrote:
>> On 12/20/2013 03:09 PM, Gavin Flower wrote:
>>> What about leap years?
>> What about them?
>>
> some years have 365 days others have 366, so how any days in an interval
> of 2 years?, 4 years?

Your question isn't relevant to this patch.  It's not defining the
interval type, just creating an alternate constructor for it.

(the answer is, it depends on what timestamp you're adding it to ...)

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Gavin Flower
Date:
Subject: Re: make_interval ??
Next
From: Florian Pflug
Date:
Subject: Re: XML Issue with DTDs