Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group