diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2015-09-13 17:06:45 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2015-09-13 17:06:45 -0400 |
commit | e7e3ac2d51130d707792e657facc58c160182342 (patch) | |
tree | a7cd0a0c1b4ffe25c4062bacd108d00d4a66d8f5 /src/backend/access/gist/gist.c | |
parent | c193b8ca9d05e8167b6deb057c06a7580fa517a3 (diff) | |
download | postgresql-e7e3ac2d51130d707792e657facc58c160182342.tar.gz |
Fix the fastpath rule for jsonb_concat with an empty operand.
To prevent perverse results, we now only return the other operand if
it's not scalar, and if both operands are of the same kind (array or
object).
Original bug complaint and patch from Oskari Saarenmaa, extended by me
to cover the cases of different kinds of jsonb.
Backpatch to 9.5 where jsonb_concat was introduced.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions