Re: timezone, how postgres deal with it?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: timezone, how postgres deal with it?
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C208B88905@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на timezone, how postgres deal with it?  ("Anibal David Acosta" <aa@devshock.com>)
Список pgsql-admin
Anibal David Acosta wrote:
> This query returns false
>
> select ('2012-11-20 17:00:00-02:00'::timestamp with time zone) =
('2012-11-20 18:00:00-
> 03:00'::timestamp with time zone)
>
> But are exactly same time
>
> Why?

They are not the same.  Compare:

select ('2012-11-20 17:00:00-02:00'::timestamp with time zone) =
('2012-11-20 16:00:00-03:00'::timestamp with time zone)

That will return true.

Yours,
Laurenz Albe


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: timezone, how postgres deal with it?
Следующее
От: Subhasis Bhattacharya
Дата:
Сообщение: Autovaccum failure with Postgres 8.3.14? (max-fsm_pages issue?)