Re: GiST seems to drop left-branch leaf tuples - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: GiST seems to drop left-branch leaf tuples
Date
Msg-id 4CEB6D4A.2090201@enterprisedb.com
Whole thread Raw
In response to GiST seems to drop left-branch leaf tuples  (Peter Tanski <ptanski@raditaz.com>)
Responses Re: GiST seems to drop left-branch leaf tuples
List pgsql-hackers
On 22.11.2010 23:18, Peter Tanski wrote:
> Whatever test I use for Same(), Penalty() and Consistent() does not seem
> to affect the problem significantly. For now I am only using
> Consistent() as a check for retrieval.

I believe it's not possible to lose leaf tuples with incorrectly defined 
gist support functions. You might get completely bogus results, but the 
tuples should be there when you look at gist_tree() output. So this 
sounds like a gist bug to me.

> Note that there are only 133 leaf tuples -- for 500 rows. If the index
> process were operating correctly, there should have been 500 leaf tuples
> there. If I REINDEX the table the number of leaf tuples may change
> slightly but not by much.

One idea for debugging is to insert the rows to the table one by one, 
and run the query after each insertion. When do the leaf tuples disappear?

If you can put together a small self-contained test case and post it to 
the list, I can take a look.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: final patch - plpgsql: for-in-array
Next
From: Kris Jurka
Date:
Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al.