Add all structured objects passed to pushJsonbValue piecewise.

Andrew Dunstan <andrew@dunslane.net>

Commit: 10eb60c2dc9461b56cf90cf05032a078eef7243d
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2015-05-26T15:23:39Z
Releases: 9.4.3
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.

Files

PathChange+/−
src/backend/utils/adt/jsonb_util.c modified +9 −5