summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-09-16 02:54:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-09-16 02:54:01 +0000
commitcd55aa2e007da2dc2f4e014062c1722bbff59739 (patch)
tree4b8378086fb08f133bf0e55681892aac07c1a2d3 /src/backend/access/gist/gistget.c
parente1089e34eb7625332a4e594cc50186a5233dc2b3 (diff)
downloadpostgresql-cd55aa2e007da2dc2f4e014062c1722bbff59739.tar.gz
Fix two new-in-9.0 bugs in hstore.
There was an incorrect Assert in hstoreValidOldFormat(), which would cause immediate core dumps when attempting to work with pre-9.0 hstore data, but of course only in an assert-enabled build. Also, ghstore_decompress() incorrectly applied DatumGetHStoreP() to a datum that wasn't actually an hstore, but rather a ghstore (ie, a gist signature bitstring). That used to be harmless, but could now result in misbehavior if the hstore format conversion code happened to trigger. In reality, since ghstore is not marked toastable (and doesn't need to be), this function is useless anyway; we can lobotomize it down to returning the passed-in pointer. Both bugs found by Andrew Gierth, though this isn't exactly his proposed patch.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions