aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-10-27 10:50:41 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-10-27 10:50:41 +0200
commit22926e00f7041b2b542f80caf63b41faa99a3163 (patch)
treecd485aa228e20d1a45e9765d51bbfcd2ece08ae4 /src/backend/access/gist/gistutil.c
parenta4da35a0d2c61231d8e91ed2ae424faea6f3501c (diff)
downloadpostgresql-22926e00f7041b2b542f80caf63b41faa99a3163.tar.gz
postgresql-22926e00f7041b2b542f80caf63b41faa99a3163.zip
Fix two bugs in tsquery @> operator.
1. The comparison for matching terms used only the CRC to decide if there's a match. Two different terms with the same CRC gave a match. 2. It assumed that if the second operand has more terms than the first, it's never a match. That assumption is bogus, because there can be duplicate terms in either operand. Rewrite the implementation in a way that doesn't have those bugs. Backpatch to all supported versions.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions