Re: LIke and Indicies - Mailing list pgsql-general

From Tom Lane
Subject Re: LIke and Indicies
Date
Msg-id 6387.1109353115@sss.pgh.pa.us
Whole thread Raw
In response to LIke and Indicies  (Dave Smith <dave.smith@candata.com>)
List pgsql-general
Dave Smith <dave.smith@candata.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

pgsql-general by date:

Previous
From: Charl Gerber
Date:
Subject: Install scripts?
Next
From: Andreas 'ads' Scherbaum
Date:
Subject: Re: Tracing of tables deleting - how?