Re: timestamp skew during 7.4 -> 8.2 upgrade - Mailing list pgsql-general

From Tom Lane
Subject Re: timestamp skew during 7.4 -> 8.2 upgrade
Date
Msg-id 13855.1186779592@sss.pgh.pa.us
Whole thread Raw
In response to Re: timestamp skew during 7.4 -> 8.2 upgrade  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: timestamp skew during 7.4 -> 8.2 upgrade
List pgsql-general
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
> On Fri, Aug 10, 2007 at 10:11:29AM +0200, Louis-David Mitterrand wrote:
>> So if I understand correctly, a timestamp_tz is ...

> ... stored as UTC in the backend

> ... sent to clients shifted by whatever timezone was
>     requested by the client by one of several mechanisms:

>     - "set timezone to ..." used by the client
>     - "select ... at time zone ..." used by the client
>     - the server timezone if neither of the above is used

The other point to be clear on is that the "shifting" is done according
to whatever timezone rule files the server currently has.  Since
politicians keep changing daylight-savings rules, the same UTC date/time
might be displayed differently after an update of the relevant rule
file.

            regards, tom lane

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: SQL question: checking all required items
Next
From: Tom Lane
Date:
Subject: Re: CREATE RULE on VIEW with INSERT after UPDATE does not work