Jsonb comparison bug fixes.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b3e5cfd5f979054e31d60adafd9e75bf9c38549a
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-05-28T19:47:04Z
Releases: 9.4.0
Jsonb comparison bug fixes.

Fix an over-zealous assertion, which didn't take into account that sometimes
a scalar element can be compared against an array/object element.

Avoid comparing possibly-uninitialized local variables when end-of-array or
end-of-object is reached. Also fix and enhance comments a bit.

Peter Geoghegan, per reports by Pavel Stehule and me.

Files

PathChange+/−
src/backend/utils/adt/jsonb_util.c modified +38 −25