Re: GIN vs. Partial Indexes - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: GIN vs. Partial Indexes
Date
Msg-id 417D10D7-0AA8-4B0C-94E2-4A2DE863051E@kineticode.com
Whole thread Raw
In response to Re: GIN vs. Partial Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Oct 8, 2010, at 1:47 PM, Tom Lane wrote:

> How so?  In a typical application, there would not likely be very many
> such rows --- we're talking about cases like documents containing zero
> indexable words.  In any case, the problem right now is that GIN has
> significant functional limitations because it fails to make any index
> entry at all for such rows.  Even if there are in fact no such rows
> in a particular table, it has to fail on some queries because there
> *might* be such rows.  There is no way to fix those limitations
> unless it undertakes to have some index entry for every row.  That
> will take disk space, but it's *necessary*.  (To adapt the old saw,
> I can make this index arbitrarily small if it doesn't have to give
> the right answers.)

And could you not keep it the same with a partial index?

Best,

David


pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Keywords in pg_hba.conf should be field-specific
Next
From: Robert Haas
Date:
Subject: Re: Keywords in pg_hba.conf should be field-specific