Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B9765133798E for ; Wed, 8 Dec 2010 16:34:12 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 73162-07 for ; Wed, 8 Dec 2010 20:34:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from out-0.mx.aerioconnect.net (out-0-39.mx.aerioconnect.net [216.240.47.99]) by mail.postgresql.org (Postfix) with ESMTP id 3D6A9133655C for ; Wed, 8 Dec 2010 16:34:05 -0400 (AST) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id oB8KXw4Z022861; Wed, 8 Dec 2010 12:33:58 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from [192.168.1.178] (75-149-45-155-sfba.hfc.comcastbusiness.net [75.149.45.155]) by idiom.com (Postfix) with ESMTP id 0A49B2D6012; Wed, 8 Dec 2010 12:33:57 -0800 (PST) Message-ID: <4CFFEBB5.8090401@obviously.com> Date: Wed, 08 Dec 2010 12:33:57 -0800 From: Bryce Nesbitt User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 SeaMonkey/2.0.10 MIME-Version: 1.0 To: Marc Mamin , pgsql-performance@postgresql.org CC: Shrirang Chitnis Subject: Re: hashed subplan 5000x slower than two sequential operations References: <4CFFD446.6040609@obviously.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/115 X-Sequence-Number: 41567 Marc Mamin wrote: > > Another point: would a conditionl index help ? > on articles (context_key) where indexed > no. production=> select count(*),indexed from articles group by indexed; count | indexed --------+--------- 517433 | t 695814 | f