Re: diferent timezones in the same table?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: diferent timezones in the same table?
Дата
Msg-id 19831.1253888964@sss.pgh.pa.us
обсуждение исходный текст
Ответ на diferent timezones in the same table?  (Jaime Casanova <jcasanov@systemguards.com.ec>)
Список 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 по дате отправления:

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: diferent timezones in the same table?
Следующее
От: "Stefan"
Дата:
Сообщение: BUG #5081: ON INSERT rule does not work correctly