Re: is it possible to get the optimizer to use indexes

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-performance(at)postgresql(dot)org
Subject: Re: is it possible to get the optimizer to use indexes
Date: 2003-12-19 03:36:02
Message-ID: 20031218193514.Q20465@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-12-19 03:44:00 Re: is it possible to get the optimizer to use indexes
Previous Message Christopher Browne 2003-12-19 03:22:38 Re: is it possible to get the optimizer to use indexes with a like clause