Re: diferent timezones in the same table? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: diferent timezones in the same table?
Date
Msg-id 19831.1253888964@sss.pgh.pa.us
Whole thread Raw
In response to diferent timezones in the same table?  (Jaime Casanova <jcasanov@systemguards.com.ec>)
List pgsql-bugs
Jaime Casanova <jcasanov@systemguards.com.ec> writes:
> One of the tables in a client production system has several timestamp
> with time zone fields, in one of those fields they store '1900-01-01
> 00:00:00'::timestamp with time zone where there is no valid value (a
> legacy from another dbms)...

This will be interpreted as 1900-01-01 00:00:00 in whatever timezone
is selected when you insert the value...

> timezone 'America/Guayaquil'

... and in that zone, times before 1931 are taken to be local mean
solar time, which is 5 hours and change off GMT.  See the Olsen data
files:

# Zone    NAME        GMTOFF    RULES    FORMAT    [UNTIL]
Zone America/Guayaquil    -5:19:20 -    LMT    1890
            -5:14:00 -    QMT    1931 # Quito Mean Time
            -5:00    -    ECT         # Ecuador Time

            regards, tom lane

pgsql-bugs by date:

Previous
From: Jaime Casanova
Date:
Subject: diferent timezones in the same table?
Next
From: "Stefan"
Date:
Subject: BUG #5081: ON INSERT rule does not work correctly