X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09B8632C2A7 for ; Tue, 12 Oct 2004 05:59:12 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87047-07 for ; Tue, 12 Oct 2004 04:59:02 +0000 (GMT) Received: from mail1.acecape.com (mail1.acecape.com [66.114.74.12]) by svr1.postgresql.org (Postfix) with ESMTP id D914532C2A6 for ; Tue, 12 Oct 2004 05:59:02 +0100 (BST) Received: from p65-147.acedsl.com (p65-147.acedsl.com [66.114.65.147]) by mail1.acecape.com (8.12.11/8.12.11) with ESMTP id i9C4wtJZ017053; Tue, 12 Oct 2004 00:58:55 -0400 Date: Tue, 12 Oct 2004 00:59:37 -0400 (EDT) From: Francisco Reyes X-X-Sender: fran@zoraida.natserv.net To: Rosser Schwarz Cc: PostgreSQL performance Subject: Re: Understanding explains In-Reply-To: <37d451f70410111503755fb751@mail.gmail.com> Message-ID: <20041012005749.G98867@zoraida.natserv.net> References: <20041011164950.J97379@zoraida.natserv.net> <37d451f70410111503755fb751@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/154 X-Sequence-Number: 8630 On Mon, 11 Oct 2004, Rosser Schwarz wrote: > In general, it's best to let the planner make the appropriate choice > without any artificial constraints. As someone suggested ran with Explain analyze. With seqscan_off was better. Ran a vacuum analyze this afternoon so the stats were up to date. Although I will leave the setting as it's default for most of everything I do, it seems that for some reason in this case it mases sense to turn it off.