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 C6B9C32A97D for ; Mon, 18 Oct 2004 20:43:23 +0100 (BST) 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 01054-05 for ; Mon, 18 Oct 2004 19:43:12 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 5376F32A887 for ; Mon, 18 Oct 2004 20:43:10 +0100 (BST) 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 6524695; Mon, 18 Oct 2004 12:44:34 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Indexes performance Date: Mon, 18 Oct 2004 12:45:10 -0700 User-Agent: KMail/1.6.2 Cc: charavay References: <417383CD.3050802@ibcp.fr> In-Reply-To: <417383CD.3050802@ibcp.fr> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200410181245.10810.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/265 X-Sequence-Number: 8741 Charavay, > -------------------------------------------------------------------------= -- >-------- Hash Join =A0(cost=3D6793.29..1716853.80 rows=3D33743101 width=3D= 11) > =A0 =A0Hash Cond: ("outer"."index" =3D "inner"."index") > =A0 =A0-> =A0Seq Scan on lnk =A0(cost=3D0.00..535920.00 rows=3D33743100 w= idth=3D15) > =A0 =A0-> =A0Hash =A0(cost=3D4994.83..4994.83 rows=3D303783 width=3D4) > =A0 =A0 =A0 =A0 =A0-> =A0Seq Scan dic =A0(cost=3D0.00..4994.83 rows=3D303= 783 width=3D4) > (5 rows) According to the estimate, you are selecting all of the rows in the databas= e.=20=20=20 This is going to require a Seq Scan no matter what. --=20 --Josh Josh Berkus Aglio Database Solutions San Francisco