Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 03D659FA2B9 for ; Tue, 21 Nov 2006 11:51:00 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 13774-05 for ; Tue, 21 Nov 2006 15:50:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mxfep03.bredband.com (mxfep03.bredband.com [195.54.107.76]) by postgresql.org (Postfix) with ESMTP id 66D199FA333 for ; Tue, 21 Nov 2006 11:50:50 -0400 (AST) Received: from ironport2.bredband.com ([195.54.107.84] [195.54.107.84]) by mxfep04.bredband.com with ESMTP id <20061121151251.KVV22909.mxfep04.bredband.com@ironport2.bredband.com> for ; Tue, 21 Nov 2006 16:12:51 +0100 Received: from ua-83-227-204-174.cust.bredbandsbolaget.se (HELO zigo.dhs.org) ([83.227.204.174]) by ironport2.bredband.com with ESMTP; 21 Nov 2006 16:12:47 +0100 Received: from zigo.dhs.org (zigo [127.0.0.1]) by zigo.dhs.org (Postfix) with ESMTP id 00DA58640; Tue, 21 Nov 2006 16:12:47 +0100 (CET) Received: from 192.121.104.120 (SquirrelMail authenticated user db) by zigo.dhs.org with HTTP; Tue, 21 Nov 2006 16:12:47 +0100 (CET) Message-ID: <3389.192.121.104.120.1164121967.squirrel@zigo.dhs.org> In-Reply-To: <1164100889.5281.184.camel@localhost.localdomain> References: <1164100889.5281.184.camel@localhost.localdomain> Date: Tue, 21 Nov 2006 16:12:47 +0100 (CET) Subject: Re: BitMapScan performance degradation From: db@zigo.dhs.org To: =?iso-8859-1?Q?J=E9r=F4me_BENOIS?= Cc: "PostgreSQL Performance" , "Xavier Milliard" , "Laurent BELMONTE" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/174 X-Sequence-Number: 21944 > When enable_bitmapscan is enabled this query cost 51893.491 ms and when > is disabled 117.709 ms. But i heard bitmapscan feature improved > performance, can you help me ? The standard question we always ask first is if you have run VACUUM ANALYZE recently? Are all the costs and estimated number of rows the same after you have run VACUUM ANALYZE? If not you might want to show that new plan as well. /Dennis