Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds - Mailing list pgsql-bugs

From Daniele Varrazzo
Subject Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds
Date
Msg-id CA+mi_8ZdvDV8q03LYtEGdLYrMhvOyfvH6DeD33abH5f2tOP5eQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds  (Ryan Kelly <rpkelly22@gmail.com>)
List pgsql-bugs
On Mon, Jan 7, 2013 at 5:47 PM, Ryan Kelly <rpkelly22@gmail.com> wrote:

> Alright, now I'm thoroughly confused. What magic makes this true:

"""
Internally interval values are stored as months, days, and seconds.
This is done because the number of days in a month varies, and a day
can have 23 or 25 hours if a daylight savings time adjustment is
involved.
"""

http://www.postgresql.org/docs/9.1/static/datatype-datetime.html

-- Daniele

pgsql-bugs by date:

Previous
From: Ryan Kelly
Date:
Subject: Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds
Next
From: Tam Tran
Date:
Subject: Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds