Re: Using index for "like 'ABC%'" type query - Mailing list pgsql-general

From Jeffrey Melloy
Subject Re: Using index for "like 'ABC%'" type query
Date
Msg-id 1EFE8419-714C-11D7-ACF3-000393C78AC0@visualdistortion.org
Whole thread Raw
In response to Using index for "like 'ABC%'" type query  (lec <englim@pc.jaring.my>)
Responses Re: Using index for "like 'ABC%'" type query  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
There is a module called "tsearch" in the contrib directory which works
quite well.
On Thursday, April 17, 2003, at 09:56  PM, lec wrote:

> For current version of postgresql, is it possible for a query like
> below to utilize an index?
>
> select item_name from item where item_code like 'ABC%';
>
> Earlier versions of postgresql, eg, 6.5.3 can utilize the index.
>
>
> Thanks,
> Thomas.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly


pgsql-general by date:

Previous
From: lec
Date:
Subject: Using index for "like 'ABC%'" type query
Next
From: Bruce Momjian
Date:
Subject: Re: Using index for "like 'ABC%'" type query