Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 0FC362E005D for ; Wed, 9 Apr 2008 07:28:39 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 23498-04 for ; Wed, 9 Apr 2008 07:28:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by developer.postgresql.org (Postfix) with ESMTP id 296B02E005C for ; Wed, 9 Apr 2008 07:28:36 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id D8A3BD5607; Wed, 9 Apr 2008 18:28:29 +0800 (WST) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 4B5D61E0435; Wed, 9 Apr 2008 18:28:31 +0800 (WST) Message-ID: <47FC9A54.40006@postnewspapers.com.au> Date: Wed, 09 Apr 2008 18:28:36 +0800 From: Craig Ringer User-Agent: Icedove 1.5.0.12 (X11/20070607) MIME-Version: 1.0 To: Pavan Deolasee Cc: "Luigi N. Puleio" , pgsql-performance@postgresql.org Subject: Re: EXPLAIN detail References: <862313.90586.qm@web33505.mail.mud.yahoo.com> <2e78013d0804090304l611044d6q4a71a927ec199b65@mail.gmail.com> In-Reply-To: <2e78013d0804090304l611044d6q4a71a927ec199b65@mail.gmail.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/100 X-Sequence-Number: 29593 Pavan Deolasee wrote: > Anyways, I don't think there is much > tweaking you can do for such a query except making sure that > your table is not bloated with dead tuples. To the OP: More explicitly: Make sure you use autovacuum or run VACUUM manually on the table periodically. Would I be correct in suspecting that your real problem is with a more meaningful and complex query, and the one you've posted is oversimplifying what you are trying to do? If that is the case, and you're having problems with queries that do more real work than this one does, maybe you should post EXPLAIN ANALYZE output from such a real world query. -- Craig Ringer