Re: Bug on version 12 ?

Поиск
Список
Период
Сортировка
От John W Higgins
Тема Re: Bug on version 12 ?
Дата
Msg-id CAPhAwGwXJCKPdE=0S9dJDhq64v9=R0RSdnDQ3spULQEqJ_0Ubg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bug on version 12 ?  (PegoraroF10 <marcos@f10.com.br>)
Список pgsql-general


On Fri, May 15, 2020 at 9:38 AM PegoraroF10 <marcos@f10.com.br> wrote:
Ok Tom but then you cannot go back and forth, like this ...

select to_timestamp(jsonb_build_object('mydate',
current_timestamp)->>'mydate', 'YYYY-MM-DD HH24:MI:SS');

From here [1] - there are 2 green boxes on the page marked "Tip" - the second one is of interest here.

Apparently the portable format for your need would be

select to_timestamp('2020-04-02T18:26:50.941531-03:00', 'YYYY-MM-DDtHH24:MI:SS');

That works on both PG 11 and PG 12.

John W Higgins

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

Предыдущее
От: PegoraroF10
Дата:
Сообщение: Re: Bug on version 12 ?
Следующее
От: "Andreas 'ads' Scherbaum"
Дата:
Сообщение: Re: Inherited an 18TB DB & need to backup