Re: GIN fast insert

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GIN fast insert
Date: 2009-02-24 15:46:14
Message-ID: 603c8f070902240746n1a4c9facu9554407330369474@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Feb 24, 2009 at 10:39 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> On my system this takes about 45 ms to execute with default settings
>> and about 90 ms to execute with index scan disabled.
>
> [ shrug... ]  That's well within my threshold of pain for this.
> In any case, it might be possible to buy some/all of that back with
> minor optimization effort on the bitmap-scan code paths; nobody's
> ever really bothered to profile that AFAIK.  There is no real
> difference in the useful work (page and tuple fetches) getting done
> in the two cases, so there's no reason in principle for bitmap scan
> to be much slower than indexscan here.  The LIMIT case is the only
> one I'm aware of where there's a fundamental reason that bitmap scan
> should be slower.

Uh, a semi or anti join stops as soon as one matching row is found,
doesn't it? ISTM that a semi or anti join is in essence an iterated
limit 1 clause.

...Robert

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2009-02-24 15:51:16 Re: Synchronous replication & Hot standby patches
Previous Message Tao Ma 2009-02-24 15:41:12 Re: question about the design consideration for system catalogs