Re: LIke and Indicies

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Smith <dave(dot)smith(at)candata(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LIke and Indicies
Date: 2005-02-25 17:38:35
Message-ID: 6387.1109353115@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dave Smith <dave(dot)smith(at)candata(dot)com> writes:
> I am using 7.4.5 and trying to use the like clause (Local C) but
> postgres does not seem to want to use the index.

You *sure* you're using C locale? Try "show lc_collate".

If you're not, and don't want to re-initdb, you can make an index using
the text_pattern_ops operator class to support LIKE. See the manual or
recent discussions in pgsql-performance.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2005-02-25 18:05:09 Re: Questions regarding notify processing.
Previous Message Charl Gerber 2005-02-25 17:36:18 Install scripts?