X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2B053D1B45C for ; Fri, 19 Dec 2003 03:37:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 19710-08 for ; Thu, 18 Dec 2003 23:36:17 -0400 (AST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 328A7D1B441 for ; Thu, 18 Dec 2003 23:36:13 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 5D686355CF; Thu, 18 Dec 2003 19:36:02 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 5BEFB3556C; Thu, 18 Dec 2003 19:36:02 -0800 (PST) Date: Thu, 18 Dec 2003 19:36:02 -0800 (PST) From: Stephan Szabo To: Dave Cramer Cc: Christopher Kings-Lynne , pgsql-performance@postgresql.org Subject: Re: is it possible to get the optimizer to use indexes In-Reply-To: <1071803317.1629.16.camel@localhost.localdomain> Message-ID: <20031218193514.Q20465@megazone.bigpanda.com> References: <3FE1F5A1.6080908@geizhals.at> <60n09q9bqg.fsf@dev6.int.libertyrms.info> <1071789528.1629.10.camel@localhost.localdomain> <3FE256AA.8000707@familyhealth.com.au> <1071803317.1629.16.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/271 X-Sequence-Number: 5131 On Thu, 18 Dec 2003, Dave Cramer wrote: > after vacuum verbose analyze, I still get > > explain select * from isppm where item_upc_cd like '06038301234'; > QUERY PLAN > ----------------------------------------------------------------------- > Seq Scan on isppm (cost=100000000.00..100009684.89 rows=2 width=791) > Filter: (item_upc_cd ~~ '06038301234'::text) > (2 rows) IIRC, the other limitation is that it only does so in "C" locale due to wierdnesses in other locales.