Re: [GENERAL] Incorrect FTS result with GIN index - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] Incorrect FTS result with GIN index
Date
Msg-id 11087.1280412187@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Incorrect FTS result with GIN index  (Oleg Bartunov <oleg@sai.msu.su>)
Responses Re: [GENERAL] Incorrect FTS result with GIN index
List pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> I also wonder why did I get "right" result :) Just repeated the query:

> test=# select count(*) from search_tab where (to_tsvector('german', keywords ) @@ to_tsquery('german', 'ee:* &
dd:*'));
>   count 
> -------
>     123
> (1 row)

Yeah, that case works (though I think it's unnecessarily slow).  The one
that gives the wrong answer is the equivalent form with two AND'ed @@
operators.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: review: xml_is_well_formed
Next
From: Tom Lane
Date:
Subject: Re: page corruption on 8.3+ that makes it to standby