jsonb_array_elements issue

From: mephysto <mephystoonhell(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: jsonb_array_elements issue
Date: 2016-08-05 13:39:12
Message-ID: 1470404352397-5915026.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-08-05 14:42:22 Re: jsonb_array_elements issue
Previous Message c.to 2016-08-05 11:47:42 BUG #14281: Postgres service won't start up anymore