Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZf9z-0008JF-27 for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 18:34:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZf9x-00015O-HA for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 18:34:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZf9x-00015H-9g for pgsql-general@lists.postgresql.org; Fri, 15 May 2020 18:34:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZf9u-0007Vv-L8 for pgsql-general@postgresql.org; Fri, 15 May 2020 18:34:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 04FIY79L026167; Fri, 15 May 2020 14:34:08 -0400 From: Tom Lane To: PegoraroF10 cc: pgsql-general@postgresql.org Subject: Re: Bug on version 12 ? 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> Comments: In-reply-to PegoraroF10 message dated "Fri, 15 May 2020 09:38:28 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26165.1589567647.1@sss.pgh.pa.us> Date: Fri, 15 May 2020 14:34:07 -0400 Message-ID: <26166.1589567647@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PegoraroF10 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