Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E37529FB8C0 for ; Tue, 13 Feb 2007 12:49:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 37775-05 for ; Tue, 13 Feb 2007 12:49:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id A2D2D9FB866 for ; Tue, 13 Feb 2007 12:49:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l1DGnDMQ001286; Tue, 13 Feb 2007 11:49:13 -0500 (EST) To: "Guillaume Smet" cc: pgsql-performance@postgresql.org Subject: Re: Question about Bitmap Heap Scan/BitmapAnd In-reply-to: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com> References: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com> Comments: In-reply-to "Guillaume Smet" message dated "Tue, 13 Feb 2007 17:32:58 +0100" Date: Tue, 13 Feb 2007 11:49:13 -0500 Message-ID: <1285.1171385353@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.073 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/127 X-Sequence-Number: 23181 "Guillaume Smet" writes: > What surprises me is that "parking" is in the filter and not in the > Recheck Cond whereas it's part of the second Bitmap Index Scan of the > Bitmap And node. That's probably because of this: /* * When dealing with special or lossy operators, we will at this point * have duplicate clauses in qpqual and bitmapqualorig. We may as well * drop 'em from bitmapqualorig, since there's no point in making the * tests twice. */ 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? regards, tom lane