Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 551711337B98 for ; Thu, 13 Jan 2011 14:09:52 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 27497-08 for ; Thu, 13 Jan 2011 18:09:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7916F1337B95 for ; Thu, 13 Jan 2011 14:09:44 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0DI9gHD020089; Thu, 13 Jan 2011 13:09:42 -0500 (EST) To: "Pasman" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5834: Planner - cost for hash scan too small In-reply-to: <201101130907.p0D97lX2063378@wwwmaster.postgresql.org> References: <201101130907.p0D97lX2063378@wwwmaster.postgresql.org> Comments: In-reply-to "Pasman" message dated "Thu, 13 Jan 2011 09:07:47 +0000" Date: Thu, 13 Jan 2011 13:09:42 -0500 Message-ID: <20088.1294942182@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/94 X-Sequence-Number: 29116 "Pasman" writes: > Postgres not estimate cost of creating hash index > when it plans hash join. Use case: Yes, it does figure those costs, but they're just folded into the cost of the hashjoin. The numbers shown for the Hash subnode are only cosmetic. regards, tom lane