X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 04BD547636B for ; Tue, 13 May 2003 12:15:44 -0400 (EDT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id 48252474E42 for ; Tue, 13 May 2003 12:15:43 -0400 (EDT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3030574; Tue, 13 May 2003 09:15:49 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: "Alfranio Junior" , Subject: Re: PERFORMANCE and SIZE Date: Tue, 13 May 2003 09:15:34 -0700 User-Agent: KMail/1.4.3 References: <011d01c318be$997217f0$9002a8c0@ialfranio> <200305120849.39381.josh@agliodbs.com> <012a01c3198e$48957270$9002a8c0@ialfranio> In-Reply-To: <012a01c3198e$48957270$9002a8c0@ialfranio> MIME-Version: 1.0 Message-Id: <200305130915.34850.josh@agliodbs.com> Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-22.7 required=5.0 tests=BAYES_01,IN_REP_TO,REFERENCES,USER_AGENT_KMAIL 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/148 X-Sequence-Number: 1927 Alfranio, > And now, the optimizer started to use a table scan and in consequence giv= es > me: What appears to me to be happening is that the planner has incorrect estima= tes=20 of the cost of an index lookup. The base estimate is contained in the=20 postgresql.conf parameter: cpu_index_tuple_cost =3D 0.001