Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVfLK-0000kp-NQ for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Aug 2016 13:39:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVfLK-0007c3-AF for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Aug 2016 13:39:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bVfLI-0007Xi-SK for pgsql-bugs@postgresql.org; Fri, 05 Aug 2016 13:39:16 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVfLF-0003Yb-SL for pgsql-bugs@postgresql.org; Fri, 05 Aug 2016 13:39:16 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 764272E1B83A for ; Fri, 5 Aug 2016 06:14:02 -0700 (PDT) Date: Fri, 5 Aug 2016 06:39:12 -0700 (MST) From: mephysto To: pgsql-bugs@postgresql.org Message-ID: <1470404352397-5915026.post@n5.nabble.com> Subject: jsonb_array_elements issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi there, I found an issue in jsonb_array_elements that can be a bug. I am using PostgreSQL 9.5.3. With this JSON: If I try to execute I get this error: ERROR: unknown type of jsonb container Instead, If I use json_array_elements with the same argument, I get no errors: return this result: Moreover it is strange that jsob function run without errors if I execute it with internal JSON as parameter: returns correct JSON. Is it an error genrate by myself or is it a bug indeed? Thanks in advance. Meph -- View this message in context: http://postgresql.nabble.com/jsonb-array-elements-issue-tp5915026.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs