Minor refactoring of jsonb_util.c

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: d1d50bff247f189a6a1477596cdbd52d097089a0
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-05-28T20:48:02Z
Releases: 9.4.0
Minor refactoring of jsonb_util.c

The only caller of compareJsonbScalarValue that needed locale-sensitive
comparison of strings was also the only caller that didn't just check for
equality. Separate the two cases for clarity: compareJsonbScalarValue now
does locale-sensitive comparison, and a new function,
equalsJsonbScalarValue, just checks for equality.

Files

PathChange+/−
src/backend/utils/adt/jsonb_util.c modified +43 −30