[COMMITTERS] pgsql: Clean up jsonb code.

2014-05-07 Thread Heikki Linnakangas
Clean up jsonb code. The main target of this cleanup is the convertJsonb() function, but I also touched a lot of other things that I spotted into in the process. The new convertToJsonb() function uses an output buffer that's resized on demand, so the code to estimate of the size of JsonbValue is

Re: [COMMITTERS] pgsql: Clean up jsonb code.

2014-05-07 Thread Peter Geoghegan
Thanks for cleaning this up. On Wed, May 7, 2014 at 1:18 PM, Heikki Linnakangas heikki.linnakan...@iki.fi wrote: The jsonb_exists_any and jsonb_exists_all functions no longer sort the input array. That was a premature optimization, the idea being that if there are duplicates in the input