diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-10-27 10:50:41 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-10-27 10:51:33 +0200 |
commit | 604d94d4cacc787bfa41452785a2927c24829fc5 (patch) | |
tree | 45f59400594a66aee30b9b2d76bc95f0a35f0b13 /src/backend/commands/dbcommands.c | |
parent | 4586572d789952f2be64faaa2c3e00e549162aec (diff) | |
download | postgresql-604d94d4cacc787bfa41452785a2927c24829fc5.tar.gz postgresql-604d94d4cacc787bfa41452785a2927c24829fc5.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