pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: PegoraroF10 <marcos@f10.com.br>
Cc: pgsql-general@postgresql.org
Subject: Re: Bug on version 12 ?
Date: Fri, 15 May 2020 14:34:07 -0400
Message-ID: <26166.1589567647@sss.pgh.pa.us> (raw)
In-Reply-To: <1589560708455-0.post@n3.nabble.com>
References: <1589555314264-0.post@n3.nabble.com>
	<12005.1589560060@sss.pgh.pa.us>
	<1589560708455-0.post@n3.nabble.com>

PegoraroF10 <marcos@f10.com.br> writes:
> 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');

> works on 11.7 but not on 12.3.

The advice I gave you was to stop using to_timestamp altogether.
That would work fine on any Postgres version.

			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <26166.1589567647@sss.pgh.pa.us>
Permalink:  ../26166.1589567647@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26166.1589567647@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, marcos@f10.com.br
  Subject: Re: Bug on version 12 ?
  In-Reply-To: <26166.1589567647@sss.pgh.pa.us>
  References: <1589555314264-0.post@n3.nabble.com> <12005.1589560060@sss.pgh.pa.us> <1589560708455-0.post@n3.nabble.com> <26166.1589567647@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox