X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0CFD8D1B170 for ; Thu, 15 Jul 2004 15:11:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93523-04 for ; Thu, 15 Jul 2004 18:11:18 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 6533CD1B16E for ; Thu, 15 Jul 2004 15:11:17 -0300 (ADT) Received: from [64.81.245.111] (HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5765902; Thu, 15 Jul 2004 11:12:28 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Steinar H. Gunderson" , pgsql-performance@postgresql.org Subject: Re: Odd sorting behaviour Date: Thu, 15 Jul 2004 11:11:33 -0700 User-Agent: KMail/1.5.4 References: <20040708101913.GA15871@uio.no> <16637.1089867158@sss.pgh.pa.us> <20040715120854.GA31259@uio.no> In-Reply-To: <20040715120854.GA31259@uio.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407151111.34002.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/102 X-Sequence-Number: 7493 Steinar, > sort_mem is already 16384, which I thought would be plenty -- I tried > increasing it to 65536 which made exactly zero difference. :-) Well, then the next step is increasing the statistical sampling on the 3 join columns in that table. Try setting statistics to 500 for each of the 3 cols, analyze, and see if that makes a difference. -- -Josh Berkus Aglio Database Solutions San Francisco