Re: LIKE should use index when condition doesn't include - Mailing list pgsql-performance

From Josh Berkus
Subject Re: LIKE should use index when condition doesn't include
Date
Msg-id 200403301656.09664.josh@agliodbs.com
Whole thread Raw
In response to Re: LIKE should use index when condition doesn't include  (Palle Girgensohn <girgen@pingpong.net>)
Responses Re: LIKE should use index when condition doesn't include
Re: LIKE should use index when condition doesn't include
List pgsql-performance
Palle,

> But what about ILIKE. It does not take advantage of indices built with
> lower():

Nope.  If you want to use a functional index, you'll need to use the function
when you call the query.   ILIKE is not somehow aware that it is equivalent
to lower().

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


pgsql-performance by date:

Previous
From: Palle Girgensohn
Date:
Subject: Re: LIKE should use index when condition doesn't include
Next
From: Palle Girgensohn
Date:
Subject: Re: LIKE should use index when condition doesn't include