Re: pgsql: Implement jsonpath .datetime() method - Mailing list pgsql-committers

From Alexander Korotkov
Subject Re: pgsql: Implement jsonpath .datetime() method
Date
Msg-id CAPpHfdvtUeC1ed8bKpsuYj8Z9hkeLPnku3FyYPddGHgNZFGpwA@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Implement jsonpath .datetime() method  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: Implement jsonpath .datetime() method  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Re: pgsql: Implement jsonpath .datetime() method  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-committers
On Sun, Oct 13, 2019 at 5:24 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alexander Korotkov <a.korotkov@postgrespro.ru> writes:
> > This patch also changes the way timestamp to timestamptz cast works.
> > Previously it did timestamp2tm() then tm2timestamp().  Instead, after
> > timestamp2tm() it calculates timezone offset and applies it to
> > original timestamp value.  I hope this is correct.
>
> I'd wonder whether this gives the same answers near DST transitions,
> where it's not real clear which offset applies.

I will try this and share the results.

> Please *don't* wrap this sort of thing into an unrelated feature patch.

Sure, thank you for noticing.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: Fix dependency handling of column drop with partitionedtables
Next
From: Tomas Vondra
Date:
Subject: pgsql: Check for tables with sql_identifier during pg_upgrade