Re: jsonb_array_elements issue - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: jsonb_array_elements issue
Date
Msg-id CAKFQuwZvbHFh6z8GamjHHXZsE6auRL4Nnee_8=jVSPQv9=5=aw@mail.gmail.com
Whole thread Raw
In response to jsonb_array_elements issue  (mephysto <mephystoonhell@gmail.com>)
Responses Re: jsonb_array_elements issue  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-bugs
On Fri, Aug 5, 2016 at 9:39 AM, mephysto <mephystoonhell@gmail.com> wrote:

> Hi there,
> I found an issue in jsonb_array_elements that can be a bug. I am using
> PostgreSQL 9.5.3.


=E2=80=8BNabble generates emails that these lists do not properly accept - =
all of
your json and queries got stripped out.

Anyway, the queries you provided gave me "function not found errors".

I did get the following to work just fine though...

select jsonb_array_elements(
((
'{"skillId":58,"applicationConditionId":1,"skillName":"[{\"id\":1,\"text\":=
\"Armatura\"},{\"id\":2,\"text\":\"Armor\"}]","skillDescription":"[{\"id\":=
1,\"text\":\"Riduce
ATK DMG ricevuto dalla Carta Personaggio di
#[$$X$$]#\"},{\"id\":2,\"text\":\"Reduce ATK DMG dealt to Character Card by
#[$$X$$]#\"}]","affectsData":[{"activationTime":1000,"affectId":0,"affectTa=
rget":1,"affectTrigger":2,"afterOrBeforeTriggeringAction":1,"effectData":{"=
effectFormula":"1*$$X$$","effectId":73,"effectTarget":1,"timeSchedule":""},=
"timesToTrigger":-1}],"effectsData":[]}'::JSONB
)->>'affectsData'
)::jsonb)

David J.
=E2=80=8B

pgsql-bugs by date:

Previous
From: mephysto
Date:
Subject: jsonb_array_elements issue
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large