pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: "D'Arcy" "J.M." Cain <darcy@druid.net>
To: teo@flex.ro
Cc: hannu@tm.ee
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] Case insensitive LIKE ?
Date: Sun, 31 Oct 1999 08:29:51 -0500 (EST)
Message-ID: <m11hv3P-0000bFC@druid.net> (raw)
In-Reply-To: <381C3665.572E14EF@flex.ro>

Thus spake Constantin Teodorescu
> Hannu Krosing wrote:
> >  select * from t where lower(name) like 'john%';
> Yes, it may work, but probably lower(name) won't work on ODBC->MS Access

Don't know about the M$ issue but if you do use the above you may want to
do the following to speed things up.

CREATE INDEX lower_name ON t (LOWER(name) text_ops);

A simple index on name won't help in the above query.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (11+ messages)  latest in thread

Message-ID: <m11hv3P-0000bFC@druid.net>
Permalink:  ../m11hv3P-0000bFC@druid.net/
Also on:    postgresql.org/message-id/m11hv3P-0000bFC@druid.net

 · 

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-interfaces@postgresql.org
  Cc: darcy@druid.net, teo@flex.ro, hannu@tm.ee
  Subject: Re: [INTERFACES] Case insensitive LIKE ?
  In-Reply-To: <m11hv3P-0000bFC@druid.net>

* 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