X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9BD6E9DCA7D for ; Tue, 28 Mar 2006 11:26:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82733-10 for ; Tue, 28 Mar 2006 11:26:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (unknown [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 419B39DC9DD for ; Tue, 28 Mar 2006 11:26:32 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (T8b28.t.pppool.de [89.55.139.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 881BB656CF; Tue, 28 Mar 2006 17:27:16 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 941EE18148C83; Tue, 28 Mar 2006 17:26:46 +0200 (CEST) Message-ID: <442955B6.70102@logix-tt.com> Date: Tue, 28 Mar 2006 17:26:46 +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: gry@ll.mit.edu Cc: Simon Riggs , pgsql-performance@postgresql.org Subject: Re: simple join uses indexes, very slow References: <20060327134733.72422d23.gry@ll.mit.edu> <1143534654.3839.251.camel@localhost.localdomain> <20060328102200.39077862.gry@ll.mit.edu> In-Reply-To: <20060328102200.39077862.gry@ll.mit.edu> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.111 required=5 tests=[AWL=0.111] X-Spam-Score: 0.111 X-Spam-Level: X-Archive-Number: 200603/542 X-Sequence-Number: 17979 Hi, George, george young wrote: >>Looks like a hash join might be faster. What is your work_mem set to? > > work_mem= 1024 This is 1 Megabyte. By all means, increase it, if possible. 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