Re: storing TZ along timestamps - Mailing list pgsql-hackers

From Robert Haas
Subject Re: storing TZ along timestamps
Date
Msg-id BANLkTi=wsL84jF6MeaBctEP5397cNjOGGQ@mail.gmail.com
Whole thread Raw
In response to Re: storing TZ along timestamps  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: storing TZ along timestamps
List pgsql-hackers
On Thu, Jun 2, 2011 at 3:02 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> On Thu, 2011-06-02 at 18:46 +0000, Christopher Browne wrote:
>> > 1. How would the time-zone be defined in this composite? Offset from GMT?
>> > Timezone (well, link thereto) with all DST rules intact? Would "extract"
>> > need to be modified to include the ability to grab the timezone?
>>
>> That doesn't seem appropriate, because timezones are not always
>> represented by strict offsets from GMT.  Some frequently-used
>> timezones represent variable offsets.  ("EDT/EST", I'm looking at
>> you!)
>
> In conjunction with a specific timestamp, a timezone does strictly map
> to a single offset.

But that doesn't seem like enough, because if someone adds '1 day',
knowing the offset isn't sufficient to figure out the answer.  You
have to know where the DST boundary is.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: patch review : Add ability to constrain backend temporary file space
Next
From: Jeff Davis
Date:
Subject: Re: storing TZ along timestamps