X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 88EA49FB254 for ; Mon, 7 Aug 2006 10:32:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 01236-04 for ; Mon, 7 Aug 2006 10:32:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id F0CA89FB20F for ; Mon, 7 Aug 2006 10:32:27 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D25A1.dip0.t-ipconnect.de [84.157.37.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 57564656B8; Mon, 7 Aug 2006 15:34:24 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 80E51185CD0DC; Mon, 7 Aug 2006 15:32:39 +0200 (CEST) Message-ID: <44D740F7.2020204@logix-tt.com> Date: Mon, 07 Aug 2006 15:32:39 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.4 (X11/20060713) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Cc: H Hale Subject: Re: sub select performance due to seq scans References: <20060802121732.94126.qmail@web88001.mail.re2.yahoo.com> <1154537296.7882.59.camel@state.g2switchworks.com> In-Reply-To: <1154537296.7882.59.camel@state.g2switchworks.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.168 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/69 X-Sequence-Number: 20254 Hi, Scott and Hale, Scott Marlowe wrote: > Make sure analyze has been run and that the statistics are fairly > accurate. It might also help to increase the statistics_target on the column in question. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org