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 6F154D1B195 for ; Thu, 15 Jul 2004 19:16:17 -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 05632-03 for ; Thu, 15 Jul 2004 22:16:16 +0000 (GMT) Received: from trofast.sesse.net (trofast.sesse.net [129.241.93.32]) by svr1.postgresql.org (Postfix) with ESMTP id BA046D1B16A for ; Thu, 15 Jul 2004 19:16:10 -0300 (ADT) Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1BlEWS-0000rh-00 for ; Fri, 16 Jul 2004 00:16:12 +0200 Date: Fri, 16 Jul 2004 00:16:12 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: Odd sorting behaviour Message-ID: <20040715221612.GA2904@uio.no> References: <20040708101913.GA15871@uio.no> <16637.1089867158@sss.pgh.pa.us> <20040715120854.GA31259@uio.no> <200407151111.34002.josh@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407151111.34002.josh@agliodbs.com> X-Operating-System: Linux 2.6.6 on a i686 User-Agent: Mutt/1.5.6+20040523i 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/103 X-Sequence-Number: 7494 On Thu, Jul 15, 2004 at 11:11:33AM -0700, Josh Berkus wrote: >> 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. Made no difference on either version (7.2 or 7.4). BTW, you guys can stop Cc-ing me now; I'm subscribed. :-) /* Steinar */ -- Homepage: http://www.sesse.net/