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 143DBD1C487 for ; Thu, 14 Aug 2003 12:14:34 +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 93622-01 for ; Thu, 14 Aug 2003 09:12:58 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id A35A7D1C9D1 for ; Thu, 14 Aug 2003 09:14:22 -0300 (ADT) Received: (qmail 31913 invoked from network); 14 Aug 2003 12:14:24 -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:14:24 -0000 Subject: query tuning From: Dave Cramer Reply-To: Dave@micro-automation.net To: "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: Message-Id: <1060862962.1631.102.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 14 Aug 2003 08:09:23 -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/679 X-Sequence-Number: 47096 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 -- Dave Cramer