Skip site navigation (1) Skip section navigation (2)

Re: ilike not using index.

From: Kenneth Marshall <ktm(at)rice(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Darryl Pye <darrylpye(at)hotmail(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: ilike not using index.
Date: 2010-06-21 19:39:52
Message-ID: 20100621193952.GC23529@aart.is.rice.edu (view raw or flat)
Thread:
Lists: pgsql-novice
On Mon, Jun 21, 2010 at 03:36:07PM -0400, Tom Lane wrote:
> Darryl Pye <darrylpye(at)hotmail(dot)com> writes:
> > Index was working correctly in 8.4,I have upgraded to  version 9 as I require some of the new features and now the index doesn't work.
> 
> No version of Postgres has ever been able to use an index for ILIKE.
> 
> You might consider creating an index on lower(full_name) and then
> querying WHERE lower(full_name) LIKE whatever.
> 
> 			regards, tom lane
> 

Would citext support this?

Regards,
Ken

In response to

Responses

pgsql-novice by date

Next:From: Tom LaneDate: 2010-06-21 20:03:35
Subject: Re: ilike not using index.
Previous:From: Tom LaneDate: 2010-06-21 19:36:07
Subject: Re: ilike not using index.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group