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 8DD45D1B8D1 for ; Fri, 15 Aug 2003 17:53:44 +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 08597-04 for ; Fri, 15 Aug 2003 14:53:34 -0300 (ADT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 7A68BD1B8CE for ; Fri, 15 Aug 2003 14:53:33 -0300 (ADT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h7FHrXt32245; Fri, 15 Aug 2003 13:53:33 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h7FHrXs06894; Fri, 15 Aug 2003 13:53:33 -0400 Received: from [192.168.1.2] (vpn50-21.rdu.redhat.com [172.16.50.21]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h7FHrWED021716; Fri, 15 Aug 2003 13:53:32 -0400 Subject: Re: query tuning From: Fernando Nasser To: dave@fastcrypt.com Cc: "pgsql-general@postgresql.org" In-Reply-To: <1060862412.1721.99.camel@localhost.localdomain> References: <71E37EF6B7DCC1499CEA0316A2568328DC9819@loki.globexplorer.com> <20030813211417.46be5abe.expect@ihubbell.com> <1060862412.1721.99.camel@localhost.localdomain> Content-Type: text/plain Organization: Red Hat Canada Ltd. Message-Id: <1060969670.2357.4.camel@novo> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 15 Aug 2003 13:47:50 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/759 X-Sequence-Number: 47176 SET enable_seqscan TO FALSE; SET enable_seqscan TO TRUE; Is this what you where looking for? Regards, Fernando On Thu, 2003-08-14 at 08:00, 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? > > Any help would be appreciated. > > Dave