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 C4F03D1C85A for ; Thu, 14 Aug 2003 13:43:00 +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 16032-04 for ; Thu, 14 Aug 2003 10:41:26 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id AC4ABD1C50D for ; Thu, 14 Aug 2003 10:42:49 -0300 (ADT) Received: (qmail 30170 invoked by uid 500); 14 Aug 2003 13:48:26 -0000 Date: Thu, 14 Aug 2003 08:48:26 -0500 From: Bruno Wolff III To: Dave Cramer Cc: "pgsql-general@postgresql.org" Subject: Re: query tuning Message-ID: <20030814134826.GD27870@wolff.to> Mail-Followup-To: Dave Cramer , "pgsql-general@postgresql.org" References: <71E37EF6B7DCC1499CEA0316A2568328DC9819@loki.globexplorer.com> <20030813211417.46be5abe.expect@ihubbell.com> <1060862962.1631.102.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1060862962.1631.102.camel@localhost.localdomain> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/686 X-Sequence-Number: 47103 Please don't reply to messages to start a new thread. On Thu, Aug 14, 2003 at 08:09:23 -0400, Dave Cramer wrote: > 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? Have you run vacuum analyze? Can you supply a copy of the query and explain analyze output?