Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 07E8C9FBE8F for ; Tue, 8 May 2007 12:34:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 19892-02 for ; Tue, 8 May 2007 12:34:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 68D599FBEDD for ; Tue, 8 May 2007 12:34:23 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-217-243.bk12-dsl.surnet.cl [201.221.217.243]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l48FYIFr000490; Tue, 8 May 2007 08:34:19 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DBB0432A0F; Tue, 8 May 2007 11:34:15 -0400 (CLT) Date: Tue, 8 May 2007 11:34:15 -0400 From: Alvaro Herrera To: Susan Russo Cc: sgunderson@bigfoot.com, harvsys@morgan.harvard.edu, pgsql-performance@postgresql.org Subject: Re: specific query (not all) on Pg8 MUCH slower than Pg7 Message-ID: <20070508153415.GJ4685@alvh.no-ip.org> References: <200705081519.l48FJtsT028597@larrys.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705081519.l48FJtsT028597@larrys.harvard.edu> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 08 May 2007 08:34:19 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/126 X-Sequence-Number: 24516 Susan Russo wrote: > Hi, > > >You could always try > > > > CREATE INDEX test_index ON dbxref (accession varchar_pattern_ops); > > WOW! we're now at runtime 0.367ms on Pg8 > > Next step is to initdb w/C Locale (tonight) (Thanks Tom et al.!). That's alternative to the pattern_ops index; it won't help you obtain a plan faster than this one. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.