Re: LIKE on index not working - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: LIKE on index not working
Date
Msg-id 200407221441.05497.peter_e@gmx.net
Whole thread Raw
In response to LIKE on index not working  ("Chris Cox" <cjcox@optushome.com.au>)
List pgsql-sql
Am Donnerstag, 22. Juli 2004 09:38 schrieb Chris Cox:
> For some reason I just can't get this to use the index for the following
> query.  I'm using PostgreSQL 7.3.4.

In 7.3, LIKE cannot use an index unless you set the locale to C.  In 7.4, LIKE 
can use an index, but it has to be a different kind of index, as explained 
here:

http://www.postgresql.org/docs/7.4/static/indexes-opclass.html

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-sql by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: surrogate key or not?
Next
From:
Date:
Subject: Re: next integer in serial key