pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Question about Bitmap Heap Scan/BitmapAnd
Date: Tue, 13 Feb 2007 18:17:41 +0100
Message-ID: <1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com> (raw)
In-Reply-To: <1285.1171385353@sss.pgh.pa.us>
References: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com>
	<1285.1171385353@sss.pgh.pa.us>

On 2/13/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>     bitmapqualorig = list_difference_ptr(bitmapqualorig, qpqual);
>
> What's not immediately clear is why the condition was in both lists to
> start with.  Perhaps idx_lieu_parking is a partial index with this as
> its WHERE condition?

Yes, it is: "idx_lieu_parking" btree (parking) WHERE parking = true .
Sorry for not pointing it immediatly.
If not, the index is not used at all (there are very few lines in lieu
with parking=true).

So the basic explanation is that it's in both lists due to the partial
index and only qpqual keeps the condition? I would have expected the
opposite but it doesn't change anything I suppose?

Thanks for your answer.

--
Guillaume



view thread (9+ messages)  latest in thread

Message-ID: <1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com>
Permalink:  ../1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: guillaume.smet@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Question about Bitmap Heap Scan/BitmapAnd
  In-Reply-To: <1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com>
  References: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com> <1285.1171385353@sss.pgh.pa.us> <1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.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