X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8E3D6D1B56B for ; Thu, 14 Aug 2003 12:05:20 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 85999-08 for ; Thu, 14 Aug 2003 09:03:45 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 48A83D1C935 for ; Thu, 14 Aug 2003 09:05:09 -0300 (ADT) Received: (qmail 31359 invoked from network); 14 Aug 2003 12:05:11 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (64.7.143.116) by net2.micro-automation.com with SMTP; 14 Aug 2003 12:05:11 -0000 Subject: query tuning From: Dave Cramer Reply-To: dave@fastcrypt.com Cc: "pgsql-general@postgresql.org" In-Reply-To: <20030813211417.46be5abe.expect@ihubbell.com> References: <71E37EF6B7DCC1499CEA0316A2568328DC9819@loki.globexplorer.com> <20030813211417.46be5abe.expect@ihubbell.com> Content-Type: text/plain Organization: fastcrypt Message-Id: <1060862412.1721.99.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 14 Aug 2003 08:00:12 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/710 X-Sequence-Number: 47127 I have a query which definitely runs faster when sequential scans are turned off. Which parameters do I tune? and which way? After quickly perusing the docs, and google, I think it is the random_page_cost? Any help would be appreciated. Dave -- Dave Cramer fastcrypt