pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Palle Girgensohn <girgen@pingpong.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: LIKE should use index when condition doesn't include
Date: Tue, 30 Mar 2004 16:56:09 -0800
Message-ID: <200403301656.09664.josh@agliodbs.com> (raw)
In-Reply-To: <162280000.1080692911@palle.girgensohn.se>
References: <145170000.1080688008@palle.girgensohn.se>
	<26840.1080692204@sss.pgh.pa.us>
	<162280000.1080692911@palle.girgensohn.se>

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




view thread (7+ messages)  latest in thread

Message-ID: <200403301656.09664.josh@agliodbs.com>
Permalink:  ../200403301656.09664.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200403301656.09664.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, girgen@pingpong.net, tgl@sss.pgh.pa.us
  Subject: Re: LIKE should use index when condition doesn't include
  In-Reply-To: <200403301656.09664.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox