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 6F1FF52825 for ; Thu, 23 Jun 2005 14:09:39 -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 87130-04 for ; Thu, 23 Jun 2005 17:09:33 +0000 (GMT) Received: from turing.dhtns.com (turing.dhtns.com [66.118.163.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2796152863 for ; Thu, 23 Jun 2005 14:09:32 -0300 (ADT) Received: by turing.dhtns.com (Postfix, from userid 1000) id 8BB493CE235; Thu, 23 Jun 2005 13:09:07 -0400 (EDT) Date: Thu, 23 Jun 2005 13:09:07 -0400 From: Elliott Bennett To: pgsql-performance@postgresql.org Subject: Re: select distinct on varchar - wild performance differences! Message-ID: <20050623170907.GA32134@turing.dhtns.com> References: <20050623150945.GA31186@turing.dhtns.com> <5595.1119540895@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5595.1119540895@sss.pgh.pa.us> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/460 X-Sequence-Number: 13097 hah! That did it. Setting to 'C' makes it just as fast as the other machines. I think it defaulted to en_US... Thanks! -Elliott On Thu, Jun 23, 2005 at 11:34:55AM -0400, Tom Lane wrote: > Elliott Bennett writes: > > Anyone have any ideas as to what may be up with machine B? > > Different locale setting? strcoll() can be horribly slow in some > locales ... > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >