X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1426F9FB414 for ; Tue, 29 Aug 2006 18:01:54 -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 70911-01-3 for ; Tue, 29 Aug 2006 17:58:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 1BF369FB2C8 for ; Tue, 29 Aug 2006 14:41:04 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1GI7o3-0005Ay-8R for pgsql-sql@postgresql.org; Tue, 29 Aug 2006 13:55:23 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 81F213FAF; Tue, 29 Aug 2006 13:40:58 -0400 (EDT) Date: Tue, 29 Aug 2006 13:40:58 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Message-ID: <20060829174058.GB6539@phlogiston.dyndns.org> References: <7539aebb0608290944r40556b5fl2b047e845e68bd6c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7539aebb0608290944r40556b5fl2b047e845e68bd6c@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.233 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/233 X-Sequence-Number: 26191 On Tue, Aug 29, 2006 at 12:44:28PM -0400, Sumeet wrote: > me at all. Also i tried the explain analyze and what i found was the query > execution plan keeps on changes. Is there any better way to gain control My bet is that you don't have enough sample data to support a consistent query plan. SET STATISTICS might be what you need. > parameters but dint really help. Also can somebody point me out to links > which explains more about query execution plans..i.e. each of parameters > like bitmap heap scan, index scan....etc... On [mumble techdocs I think] there's a tutorial called EXPLAIN explained. Google will help you -- just use that title, with maybe "postgresql" tacked onto your search string. A -- Andrew Sullivan | ajs@crankycanuck.ca The plural of anecdote is not data. --Roger Brinner