Re: timezone, how postgres deal with it?

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Anibal David Acosta *EXTERN*" <aa(at)devshock(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: timezone, how postgres deal with it?
Date: 2012-11-22 16:05:49
Message-ID: D960CB61B694CF459DCFB4B0128514C208B88905@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Subhasis Bhattacharya 2012-11-23 11:32:37 Autovaccum failure with Postgres 8.3.14? (max-fsm_pages issue?)
Previous Message Tom Lane 2012-11-22 15:55:00 Re: timezone, how postgres deal with it?