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 CDCD83A4215 for ; Wed, 10 Nov 2004 17:01:01 +0000 (GMT) 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 23767-04 for ; Wed, 10 Nov 2004 17:00:59 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [66.143.173.58]) by svr1.postgresql.org (Postfix) with ESMTP id 81FB33A4242 for ; Wed, 10 Nov 2004 17:00:56 +0000 (GMT) Received: by flake.decibel.org (Postfix, from userid 1001) id 6BDD51C8A6; Wed, 10 Nov 2004 17:00:55 +0000 (GMT) Date: Wed, 10 Nov 2004 11:00:55 -0600 From: "Jim C. Nasby" To: "Joshua D. Drake" Cc: pgsql-performance@postgresql.org Subject: Re: seqscan strikes again Message-ID: <20041110170055.GJ46084@decibel.org> References: <20041109222345.GG46084@decibel.org> <41914F5C.9030505@commandprompt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41914F5C.9030505@commandprompt.com> X-Operating-System: FreeBSD 4.10-RELEASE-p3 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.6i 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: 200411/174 X-Sequence-Number: 9128 Which column would you recommend? Did something stick out at you? On Tue, Nov 09, 2004 at 03:14:36PM -0800, Joshua D. Drake wrote: > > >opensims=# > > > >I'd really like to avoid putting a 'set enable_seqscan=false' in my > >code, especially since this query only has a problem if it's run on a > >large date/time window, which normally doesn't happen. > > Try increasing your statistics target for the column and then rerunning > analyze. > > Sincerely, > > Joshua D. Drake -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"