aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.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:51:36 +0200
commit4d1c738d10c914729c9a08951ad546c8a6701664 (patch)
tree1b7c0725ff626c01527e05417b219516dfb52ff5 /src/backend/commands/dbcommands.c
parent94de3a679bf0afe9bb15ffb7af066b7df58859af (diff)
downloadpostgresql-4d1c738d10c914729c9a08951ad546c8a6701664.tar.gz
postgresql-4d1c738d10c914729c9a08951ad546c8a6701664.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/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions