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:24 +0200 |
commit | c366e1d169481a780857458f1064ae93007fd140 (patch) | |
tree | 57ef4e5967dd3f1bc64ba11a61f43ea23d52fdc6 /src/backend/utils/adt/numeric.c | |
parent | c53a82b99d98df393d7ba308bf1586b2201d0d65 (diff) | |
download | postgresql-c366e1d169481a780857458f1064ae93007fd140.tar.gz postgresql-c366e1d169481a780857458f1064ae93007fd140.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/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions