aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-05-31 20:34:10 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-05-31 20:34:10 -0400
commit37def4224505f3a23a5eef000f0d05daea59c5b5 (patch)
tree24ee85c2bdb98cc867245fadadc6b4f3fcc65165 /src/backend/access/gist/gistbuildbuffers.c
parent75f9d17638c9c6bec34f80326c35010c47924728 (diff)
downloadpostgresql-37def4224505f3a23a5eef000f0d05daea59c5b5.tar.gz
postgresql-37def4224505f3a23a5eef000f0d05daea59c5b5.zip
Rename jsonb_replace to jsonb_set and allow it to add new values
The function is given a fourth parameter, which defaults to true. When this parameter is true, if the last element of the path is missing in the original json, jsonb_set creates it in the result and assigns it the new value. If it is false then the function does nothing unless all elements of the path are present, including the last. Based on some original code from Dmitry Dolgov, heavily modified by me. Catalog version bumped.
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions