Re: [GENERAL] Incorrect FTS result with GIN index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Teodor Sigaev <teodor(at)sigaev(dot)ru>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Incorrect FTS result with GIN index
Date: 2010-07-29 16:28:38
Message-ID: 14531.1280420918@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> On Thu, 29 Jul 2010, Tom Lane wrote:
>> 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.

> hmm, that query works too :)

There may be some platform dependency involved --- in particular, you
wouldn't see the issue unless one keystream has two nonlossy TIDs on the
same page as the other one has a lossy TID, so it's going to depend on
the placement of heap rows. Anyway, I can reproduce it just by loading
the given dump, on both 8.4 and HEAD. Will work on a fix.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2010-07-29 17:16:15 Re: Which CMS/Ecommerce/Shopping cart ?
Previous Message Oleg Bartunov 2010-07-29 16:13:32 Re: [GENERAL] Incorrect FTS result with GIN index

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2010-07-29 16:37:45 Re: string_to_array has to be stable?
Previous Message Robert Haas 2010-07-29 16:17:03 Re: page corruption on 8.3+ that makes it to standby