Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AD1D763FCE3 for ; Thu, 10 Jun 2010 15:34:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 62810-04-4 for ; Thu, 10 Jun 2010 18:33:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from depesz.com (martin.depesz.com [188.40.39.14]) by mail.postgresql.org (Postfix) with ESMTP id 3435763FC82 for ; Thu, 10 Jun 2010 15:33:59 -0300 (ADT) Received: from martin.depesz.com ([188.40.39.14] helo=depesz.com) by depesz.com with esmtpa (Exim 4.69) (envelope-from ) id 1OMmZg-0007g6-7Y; Thu, 10 Jun 2010 20:33:56 +0200 Date: Thu, 10 Jun 2010 20:33:56 +0200 From: hubert depesz lubaczewski To: Anne Rosset Cc: pgsql-performance@postgresql.org Subject: Re: Need to increase performance of a query Message-ID: <20100610183356.GA28559@depesz.com> Reply-To: depesz@depesz.com References: <4C1125F0.8090101@collab.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4C1125F0.8090101@collab.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-10 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/174 X-Sequence-Number: 39030 On Thu, Jun 10, 2010 at 10:50:40AM -0700, Anne Rosset wrote: > Any advice on how to make it run faster? First, let me ask a simple question - what runtime for this query will be satisfactory for you? Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007