Re: recovery dump on database with different timezone

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Edmundo Robles <edmundo(at)sw-argos(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: recovery dump on database with different timezone
Date: 2017-01-24 01:01:38
Message-ID: CAKFQuwaU_WsRWpnp7kShK8P9kNctw1=Lnch7j0zOBUOA3282VA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 23, 2017 at 5:57 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

>
> * this the constraint: "time_stamp_201012ad" CHECK (time_stamp >=
>> '2010-12-01'::date AND time_stamp < '2011-01-01'::date)
>>
>> if change 2011-01-01 00:00:03.925+00 to 2011-01-01
>> 00:00:03.925-06 works ok
>>
>
> Not seeing how?:
>
> production=# show timezone;
> TimeZone
> ----------
> UTC
> (1 row)
>
>
> production=# select ' 2011-01-01 00:00:03.925+00'::timestamptz <
> '2011-01-01'::date;
> ?column?
> ----------
> f
> (1 row)
>
> production=# select ' 2011-01-01 00:00:03.925+00'::timestamptz <
> '2011-01-01'::date;
> ?column?
> ----------
> f
> (1 row)
>

​You failed to change the timezone to -06 in the second query...

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-01-24 01:07:17 Re: recovery dump on database with different timezone
Previous Message Adrian Klaver 2017-01-24 00:59:27 Re: recovery dump on database with different timezone