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 1jZbxD-0001bt-K1 for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 15:08:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZbxC-0000Z4-HF for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 15:08:50 +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 1jZbxC-0000Yx-9q for pgsql-general@lists.postgresql.org; Fri, 15 May 2020 15:08:50 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZbx1-0005k5-Go for pgsql-general@postgresql.org; Fri, 15 May 2020 15:08:49 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 410B71D8518E8 for ; Fri, 15 May 2020 08:08:34 -0700 (MST) Date: Fri, 15 May 2020 08:08:34 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1589555314264-0.post@n3.nabble.com> Subject: Bug on version 12 ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk select To_Json(Current_Timestamp); returns "2020-05-15T14:49:44.266342+00:00" on version 11.7 or 12.3 So I have lots of JSONS which have timestamp on them. select JS ->> 'mydate'::text, to_timestamp((JS ->> 'mydate'), 'YYYY-MM-DD HH24:MI:SS') from (select '{"somefield": true, "otherfield": true, "mydate": "2020-04-02T18:26:50.941531-03:00"}'::jsonb) j(JS) This SQL works fine on 11.7 but not on 12.3 version. ERROR: invalid value "T1" for "HH24" Detail: Value must be an integer. Where: SQL function "castimmutabletimestamp" statement 1 Is that a version 12 bug or a server configuration ? -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html