Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 190219FB992 for ; Wed, 25 Apr 2007 15:02:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 49003-09 for ; Wed, 25 Apr 2007 15:02:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id EAD1F9FA2F8 for ; Wed, 25 Apr 2007 15:02:29 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id D68CF76678; Wed, 25 Apr 2007 18:59:48 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 8DA952740EB; Wed, 25 Apr 2007 18:59:48 +0100 (BST) Message-ID: <462F9714.8090802@archonet.com> Date: Wed, 25 Apr 2007 18:59:48 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Aaron Bono Cc: PostgreSQL SQL List Subject: Re: Query Join Performance References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/246 X-Sequence-Number: 28246 Aaron Bono wrote: > Performance tanks with this query - it takes over 120 seconds (that is > where > I set the timeout). > BTW, on our Linux box the full query we run (which adds 3 more tables on > the > whole operation along with more filtering on the zip table) finishes in > under 10 seconds. Problem is our development is on Windows and this is a > real pain for developers to test. So what's different between the systems. Obvious things to look at: 1. EXPLAIN ANALYSE outputs to show the plans (these presumably are different, but in what details, and why?) 2. Configuration (particularly memory/cost settings). 3. Hardware. 4. Locale/encoding - these can affect index usage and sorting. -- Richard Huxton Archonet Ltd