pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Stark <greg.stark@enterprisedb.com>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [PATCHES] GIN improvements
Date: Wed, 03 Dec 2008 18:40:17 +0200
Message-ID: <4936B671.8070708@enterprisedb.com> (raw)
In-Reply-To: <7855.1228314933@sss.pgh.pa.us>
References: <483FD205.4090904@sigaev.ru>
	<486BC501.6060605@sigaev.ru>
	<27880.1215810535@sss.pgh.pa.us>
	<487A6E0C.3090600@sigaev.ru>
	<8993.1216843701@sss.pgh.pa.us>
	<4888A594.6010102@sigaev.ru>
	<490B07BA.6030109@sigaev.ru>
	<492F04D9.5070404@enterprisedb.com>
	<49353081.9030304@sigaev.ru>
	<493541F5.2020401@enterprisedb.com>
	<26721.1228266365@sss.pgh.pa.us>
	<49362DF0.80404@enterprisedb.com>
	<683CE0EA-799C-4644-9C9F-74AECD2BFBDC@enterprisedb.com>
	<7855.1228314933@sss.pgh.pa.us>

Tom Lane wrote:
> Greg Stark <greg.stark@enterprisedb.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



view thread (74+ messages)  latest in thread

Message-ID: <4936B671.8070708@enterprisedb.com>
Permalink:  ../4936B671.8070708@enterprisedb.com/
Also on:    postgresql.org/message-id/4936B671.8070708@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, tgl@sss.pgh.pa.us, greg.stark@enterprisedb.com, teodor@sigaev.ru, pgsql-hackers@postgresql.org
  Subject: Re: [PATCHES] GIN improvements
  In-Reply-To: <4936B671.8070708@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox