Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXYgN-0003OM-0F for pgsql-bugs@arkaria.postgresql.org; Wed, 01 May 2013 15:10:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXYgM-0006J6-EG for pgsql-bugs@arkaria.postgresql.org; Wed, 01 May 2013 15:10:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXYgL-0006J1-Sd for pgsql-bugs@postgresql.org; Wed, 01 May 2013 15:10:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXYgJ-0000Jw-9H for pgsql-bugs@postgresql.org; Wed, 01 May 2013 15:10:57 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r41FAqpN003470; Wed, 1 May 2013 11:10:53 -0400 (EDT) From: Tom Lane To: stefan@konink.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8130: Hashjoin still gives issues In-reply-to: References: Comments: In-reply-to stefan@konink.de message dated "Wed, 01 May 2013 12:48:07 -0000" Date: Wed, 01 May 2013 11:10:52 -0400 Message-ID: <3469.1367421052@sss.pgh.pa.us> X-Pg-Spam-Score: -4.5 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org stefan@konink.de writes: > By setting "set enable_hashjoin = off;" performance in our entire > application increased 30 fold in throughput, which was a bit unexpected but > highly appreciated. The result of the last query: At least in this example, the query appears to be fully cached and so you would need a random_page_cost near 1 to reflect the system's behavior properly. If your DB fits mostly in RAM, adjusting the cost parameters is a much better idea than fooling with the enable_ parameters. > What can we do to provide a bit more of information? https://wiki.postgresql.org/wiki/Slow_Query_Questions There is no particularly good reason to think this is a bug; please take it up on pgsql-performance if you have more questions. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs