Re: [PATCHES] GIN improvements

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Stark <greg(dot)stark(at)enterprisedb(dot)com>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] GIN improvements
Date: 2008-12-03 16:40:17
Message-ID: 4936B671.8070708@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Greg Stark <greg(dot)stark(at)enterprisedb(dot)com> writes:
>> If we do this though it would be really nice to do it at a higher
>> level than the indexam. If we could do it for any indexam that
>> provides a kind of bulk insert method that would be great.
>
>> I'm just not sure how to support all the indexable operators for the
>> various indexams on the local buffered list.
>
> In principle, just return all those TIDs marked "lossy, please recheck".
> This is a bit brute-force but I'm not sure any useful optimization is
> possible.

You could flush the local buffer to the index whenever the index is
queried. Not sure if it's better than returning them for recheck, though.

This wouldn't work for unique indexes, BTW, but that's not a problem for
GIN.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hitoshi Harada 2008-12-03 16:48:21 Re: Windowing Function Patch Review -> Standard Conformance
Previous Message Hitoshi Harada 2008-12-03 14:49:16 Re: tuplestore potential performance problem

Browse pgsql-patches by date

  From Date Subject
Next Message Emmanuel Cecchet 2008-12-10 00:51:05 Re: Fwd: [PATCHES] Auto Partitioning Patch - WIP version 1
Previous Message Tom Lane 2008-12-03 14:35:33 Re: [PATCHES] GIN improvements