aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-12-10 19:06:27 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-12-10 19:06:39 -0500
commit49b60a4be7cb8bbfb9d954cc5b81d0dc18b077df (patch)
tree649ddc9ca5ace5d2d3c8af8e0b5ddd74b76347eb /contrib/postgres_fdw/sql
parenteadd80c08ddfc485db84b9af7cca54a0d50ebe6d (diff)
downloadpostgresql-49b60a4be7cb8bbfb9d954cc5b81d0dc18b077df.tar.gz
postgresql-49b60a4be7cb8bbfb9d954cc5b81d0dc18b077df.zip
Fix minor thinko in convertToJsonb().
The amount of space to reserve for the value's varlena header is VARHDRSZ, not sizeof(VARHDRSZ). The latter coding accidentally failed to fail because of the way the VARHDRSZ macro is currently defined; but if we ever change it to return size_t (as one might reasonably expect it to do), convertToJsonb() would have failed. Spotted by Mark Dilger.
Diffstat (limited to 'contrib/postgres_fdw/sql')
0 files changed, 0 insertions, 0 deletions