Re: epoch and timezone changed bevior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: epoch and timezone changed bevior
Дата
Msg-id 26631.1443106043@sss.pgh.pa.us
обсуждение исходный текст
Ответ на epoch and timezone changed bevior  (Willy-Bas Loos <willybas@gmail.com>)
Список pgsql-general
Willy-Bas Loos <willybas@gmail.com> writes:
> Is there a reason for this change of behavior between 8.4 and 9.* ?

See the "incompatibilities" section in the 9.2 release notes:

    * Make EXTRACT(EPOCH FROM timestamp without time zone) measure the
          epoch from local midnight, not UTC midnight (Tom Lane)

    This change reverts an ill-considered change made in release
    7.3. Measuring from UTC midnight was inconsistent because it made
    the result dependent on the timezone setting, which computations
    for timestamp without time zone should not be. The previous
    behavior remains available by casting the input value to timestamp
    with time zone.


            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: epoch and timezone changed bevior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: epoch and timezone changed bevior