Teach add_json() that jsonb is of TYPCATEGORY_JSON.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 May 2014 13:44:11 +0000 (09:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 May 2014 13:44:11 +0000 (09:44 -0400)
commit62e57ff040e5d0acd303b94e86fff689effc5957
tree7c3381bc2c5bdf7cfe2535b8d1e202e1a61c8797
parentbdf9dd4db78a5f23e863f2d4d8500969dc261fd0
Teach add_json() that jsonb is of TYPCATEGORY_JSON.

This code really needs to be refactored so that there aren't so many copies
that can diverge.  Not to mention that this whole approach is probably
wrong.  But for the moment I'll just stick my finger in the dike.
Per report from Michael Paquier.
src/backend/utils/adt/json.c