pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Guillaume Smet <guillaume.smet@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Question about Bitmap Heap Scan/BitmapAnd
Date: Thu, 15 Feb 2007 13:27:33 -0300
Message-ID: <20070215162733.GO4682@alvh.no-ip.org> (raw)
In-Reply-To: <1d4e0c10702150805i73097134uf45ce1faa80e3763@mail.gmail.com>
References: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com>
	<1285.1171385353@sss.pgh.pa.us>
	<1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com>
	<1977.1171389065@sss.pgh.pa.us>
	<1d4e0c10702150805i73097134uf45ce1faa80e3763@mail.gmail.com>

Guillaume Smet escribió:

> I'm still working on my proximity query, testing PostGIS now. I
> noticed an issue with a gist index on a point which seems related to
> my previous question.
> 
> I have the following in my plan:
> ->  Bitmap Heap Scan on lieu l  (cost=13.37..1555.69 rows=844
> width=118) (actual time=3.672..39.497 rows=1509 loops=1)
>      Filter: (((dfinvalidlieu IS NULL) OR (dfinvalidlieu >= now()))
> AND (wgslat IS NOT NULL) AND (wgslon IS NOT NULL) AND (wgslat <>
> 41.89103400) AND (wgslon <> 12.49244400) AND (earthpoint &&
> '0103000020777F0000010000000500000000000040019B334100000020D1D8514100000040019B334100000040ADDE51410000006071B2334100000040ADDE51410000006071B2334100000020D1D8514100000040019B334100000020D1D85141'::geometry)
> AND (numlieu <> 49187))
>       ->  Bitmap Index Scan on idx_lieu_earthpoint  (cost=0.00..13.37
> rows=1249 width=0) (actual time=2.844..2.844 rows=1510 loops=1)
>             Index Cond: (earthpoint &&
> '0103000020777F0000010000000500000000000040019B334100000020D1D8514100000040019B334100000040ADDE51410000006071B2334100000040ADDE51410000006071B2334100000020D1D8514100000040019B334100000020D1D85141'::geometry)
> 
> Is it normal I have no recheck cond and the index cond of Bitmap Index
> Scan is in the filter? Is it also a consequence of the code you
> pointed?

It is in the filter, is it not?  Having a recheck would be redundant.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (9+ messages)  latest in thread

Message-ID: <20070215162733.GO4682@alvh.no-ip.org>
Permalink:  ../20070215162733.GO4682@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070215162733.GO4682@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, guillaume.smet@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Question about Bitmap Heap Scan/BitmapAnd
  In-Reply-To: <20070215162733.GO4682@alvh.no-ip.org>
  References: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com> <1285.1171385353@sss.pgh.pa.us> <1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com> <1977.1171389065@sss.pgh.pa.us> <1d4e0c10702150805i73097134uf45ce1faa80e3763@mail.gmail.com> <20070215162733.GO4682@alvh.no-ip.org>

* 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