Search Postgresql Archives

Re: LIke and Indicies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Smith <dave.smith@xxxxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux