pgsql: Add all structured objects passed to pushJsonbValue piecewise. - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Add all structured objects passed to pushJsonbValue piecewise.
Date
Msg-id E1YxGi0-0000Ms-Kl@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Add all structured objects passed to pushJsonbValue piecewise.  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-committers
Add all structured objects passed to pushJsonbValue piecewise.

Commit 9b74f32cdbff8b9be47fc69164eae552050509ff did this for objects of
type jbvBinary, but in trying further to simplify some of the new jsonb
code I discovered that objects of type jbvObject or jbvArray passed as
WJB_ELEM or WJB_VALUE also caused problems. These too are now added
component by component.

Backpatch to 9.4.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/54547bd87f49326d67051254c363e6597d16ffda

Modified Files
--------------
src/backend/utils/adt/jsonb_util.c |   14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix valgrind's "unaddressable bytes" whining about BRIN code.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Add all structured objects passed to pushJsonbValue piecewise.