X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 949C79FA293 for ; Thu, 18 May 2006 07:13:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05672-01 for ; Thu, 18 May 2006 07:12:59 -0300 (ADT) X-Greylist: delayed 00:30:09.940086 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 25DB49F9C18 for ; Thu, 18 May 2006 07:12:59 -0300 (ADT) Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by svr4.postgresql.org (Postfix) with ESMTP id 0B7DF5AFB7D for ; Thu, 18 May 2006 09:42:48 +0000 (GMT) Received: from kingfisher.intern.logix-tt.com (T96b4.t.pppool.de [89.55.150.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id C58F465800; Thu, 18 May 2006 11:44:02 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 1D49F18222EE9; Thu, 18 May 2006 11:43:06 +0200 (CEST) Message-ID: <446C41A9.9080600@logix-tt.com> Date: Thu, 18 May 2006 11:43:05 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mario Splivalo Cc: "Jim C. Nasby" , pgsql-performance@postgresql.org Subject: Re: Lot'sa joins - performance tip-up, please? References: <1146533274.14006.11.camel@localhost.localdomain> <17793.1146679117@sss.pgh.pa.us> <1146753957.8538.30.camel@localhost.localdomain> <20060510221048.GX99570@pervasive.com> <1147325547.8696.6.camel@localhost.localdomain> In-Reply-To: <1147325547.8696.6.camel@localhost.localdomain> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/378 X-Sequence-Number: 19165 Hi, Mario, Mario Splivalo wrote: > This helps also. I don't get sequential scans any more. I'd like a tip > on how to set 'enable_nestloop = off' trough JDBC? statement.execute("SET enable_nestloop TO off"); should do. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org