Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 722E09FB971 for ; Tue, 13 Feb 2007 13:17:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 38244-10 for ; Tue, 13 Feb 2007 13:17:41 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by postgresql.org (Postfix) with ESMTP id 5C8539FB629 for ; Tue, 13 Feb 2007 13:17:42 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id i28so2197061wxd for ; Tue, 13 Feb 2007 09:17:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rLj5OqJR46IOCsJ7baW3TCw0S6BODZXcoJe7BPSHwbnl6+lusQGurfVtH2d+VSpkn3mnuOEN5PpG88qR5AYrjgaD19RerJG/IQ0XniUSEPmrE6gSWRJrDhl0Zkx/wIZh5qekT1VvuSFs5WIgzHVryONkONsLSuPhHMzjHuHOvk8= Received: by 10.90.87.5 with SMTP id k5mr19530466agb.1171387061512; Tue, 13 Feb 2007 09:17:41 -0800 (PST) Received: by 10.90.113.7 with HTTP; Tue, 13 Feb 2007 09:17:41 -0800 (PST) Message-ID: <1d4e0c10702130917x5b6ddaf7g540bfe1f7c93b728@mail.gmail.com> Date: Tue, 13 Feb 2007 18:17:41 +0100 From: "Guillaume Smet" To: "Tom Lane" Subject: Re: Question about Bitmap Heap Scan/BitmapAnd Cc: pgsql-performance@postgresql.org In-Reply-To: <1285.1171385353@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d4e0c10702130832i35484abfmb229f5d0b4d9223b@mail.gmail.com> <1285.1171385353@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/129 X-Sequence-Number: 23183 On 2/13/07, Tom Lane 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