X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6553C52CBF; Wed, 17 Aug 2005 18:30:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16068-02; Wed, 17 Aug 2005 21:30:08 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id AF9C452E46; Wed, 17 Aug 2005 18:30:06 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7743300; Wed, 17 Aug 2005 14:32:24 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] bitmap scan issues 8.1 devel Date: Wed, 17 Aug 2005 14:33:15 -0700 User-Agent: KMail/1.8 Cc: "Merlin Moncure" , pgsql-performance@postgresql.org References: <6EE64EF3AB31D5448D0007DD34EEB3417DD11C@Herge.rcsinc.local> In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DD11C@Herge.rcsinc.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508171433.15614.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.049 required=5 tests=[AWL=-0.001, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/219 X-Sequence-Number: 13966 Merlin, > =A0 =A0-> =A0Index Scan using product_structure_file_pkey on > product_structure_file =A0(cost=3D0.00..45805.23 rows=3D5722 width=3D288) > (actual time=3D0.063..0.063 row > s=3D1 loops=3D1) It appears that your DB is estimating the number of rows returned much too= =20 high (5722 instead of 1). Please raise the statistics on all columns to=20 about 500, analyze, and try your test again. Thanks! =2D-=20 =2D-Josh Josh Berkus Aglio Database Solutions San Francisco