Re: timestamp with time zone a la sql99 - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: timestamp with time zone a la sql99
Date
Msg-id 20041022145644.GA17238@wolff.to
Whole thread Raw
In response to Re: timestamp with time zone a la sql99  (Dennis Bjorklund <db@zigo.dhs.org>)
List pgsql-hackers
On Fri, Oct 22, 2004 at 16:28:12 +0200, Dennis Bjorklund <db@zigo.dhs.org> wrote:
> On Fri, 22 Oct 2004, Tom Lane wrote:
> 
> > As far as I can tell, Dennis is planning slavish adherence to the spec,
> > which will mean that the datatype is unable to cope effectively with
> > daylight-savings issues.  So I'm unconvinced that it will be very
> > helpful to you for remembering local time in addition to true
> > (universal) time.
> 
> And exactly what issues is it that you see? The only thing I can think of
> is if you have a timestamp and then add an interval to it so we jump past
> the daylight saving time change date. Then the new timestamp will keep the
> old timezone data of say +01 even though we now have jumped into the
> daylight saving period of +02.

I think for just storing values you are fine. When it comes to adding or
subtracting intervals you might get some unexpected results.


pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: SET SESSION SESSION AUTHORIZATION
Next
From: Tom Lane
Date:
Subject: Re: timestamp with time zone a la sql99