aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-05-13 13:52:08 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-05-13 13:52:08 -0400
commit3f2cec797ecceb7467e365410506c0817f9d0163 (patch)
tree0f481167173f87595bb33791d8ee8dbb62228c65 /contrib/postgres_fdw/postgres_fdw.c
parentae6157164faf5ec1636a9acfe18bfd28a31db098 (diff)
downloadpostgresql-3f2cec797ecceb7467e365410506c0817f9d0163.tar.gz
postgresql-3f2cec797ecceb7467e365410506c0817f9d0163.zip
Fix jsonb replace and delete on scalars and empty structures
These operations now error out if attempted on scalars, and simply return the input if attempted on empty arrays or objects. Along the way we remove the unnecessary cloning of the input when it's known to be unchanged. Regression tests covering these cases are added.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions