Re: Using index for "like 'ABC%'" type query

From: Jeffrey Melloy <jmelloy(at)visualdistortion(dot)org>
To: lec <englim(at)pc(dot)jaring(dot)my>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using index for "like 'ABC%'" type query
Date: 2003-04-18 03:16:18
Message-ID: 1EFE8419-714C-11D7-ACF3-000393C78AC0@visualdistortion.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-04-18 03:18:48 Re: Using index for "like 'ABC%'" type query
Previous Message lec 2003-04-18 02:56:52 Using index for "like 'ABC%'" type query

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-04-18 03:18:48 Re: Using index for "like 'ABC%'" type query
Previous Message lec 2003-04-18 02:56:52 Using index for "like 'ABC%'" type query