Re: timezone, how postgres deal with it? - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: timezone, how postgres deal with it?
Date
Msg-id D960CB61B694CF459DCFB4B0128514C208B88905@exadv11.host.magwien.gv.at
Whole thread Raw
In response to timezone, how postgres deal with it?  ("Anibal David Acosta" <aa@devshock.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: timezone, how postgres deal with it?
Next
From: Subhasis Bhattacharya
Date:
Subject: Autovaccum failure with Postgres 8.3.14? (max-fsm_pages issue?)