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:29 +0200 |
commit | 1aa526f3f18feb2434870b1f1c78cfc0aa87d56f (patch) | |
tree | 3deee4730acf6acb49b3f45179f404eaf16850de /src/tutorial/complex.c | |
parent | f6abf8f08ac36825e3cbcaf6ef923822e65877f4 (diff) | |
download | postgresql-1aa526f3f18feb2434870b1f1c78cfc0aa87d56f.tar.gz postgresql-1aa526f3f18feb2434870b1f1c78cfc0aa87d56f.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/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions