X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8B808475AE5 for ; Fri, 9 May 2003 10:19:57 -0400 (EDT) Received: from matrix.gatewaynet.com (unknown [217.19.69.50]) by postgresql.org (Postfix) with ESMTP id DE6CC475A80 for ; Fri, 9 May 2003 10:19:55 -0400 (EDT) Received: from matrix.gatewaynet.com (localhost [127.0.0.1]) by matrix.gatewaynet.com (8.12.5/8.12.5) with ESMTP id h49JPC1s007749; Fri, 9 May 2003 17:25:12 -0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.5/8.12.5/Submit) with ESMTP id h49JPCOj007745; Fri, 9 May 2003 17:25:12 -0200 Date: Fri, 9 May 2003 17:25:12 -0200 (GMT+2) From: Achilleus Mantzios To: Tom Lane Cc: pgsql-performance@postgresql.org Subject: Re: An unresolved performance problem. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-21.6 required=5.0 tests=BAYES_00,IN_REP_TO,SIGNATURE_LONG_DENSE,USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/117 X-Sequence-Number: 1896 I changed *indexCorrelation = varCorrelation / nKeys; to *indexCorrelation = varCorrelation ; and i got cost=28.88 and it beats every other index. -- ================================================================== Achilleus Mantzios S/W Engineer IT dept Dynacom Tankers Mngmt Nikis 4, Glyfada Athens 16610 Greece tel: +30-210-8981112 fax: +30-210-8981877 email: achill@matrix.gatewaynet.com mantzios@softlab.ece.ntua.gr