From: Josh Berkus <josh@agliodbs.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Carmen Wai <wai_carmen@hotmail.com>
To: pgsql-sql@postgresql.org
To: pgsql-general@postgresql.org
Subject: Re: [SQL] Case in-sensitive
Date: Wed, 24 Jul 2002 19:27:42 -0700
Message-ID: <200207241927.42145.josh@agliodbs.com> (raw)
In-Reply-To: <GNELIHDDFBOCMGBFGEFOAEFFCDAA.chriskl@familyhealth.com.au>
References: <GNELIHDDFBOCMGBFGEFOAEFFCDAA.chriskl@familyhealth.com.au>
Chris,
> > Can I config the Postgresql so that it can match case
> > in-sensitive pattern
> > automatically? i.e. I don't need to explicit convert the pattern to lower
> > case like this: .....WHERE lower(textfield) LIKE lower(pattern)
>
> All you need to do is this:
>
> ......WHERE textfield ILIKE pattern
Though, keep in mind, lower(textfield) can be indexed, but ILIKE textfield
cannot.
--
-Josh Berkus
Aglio Database Solutions
San Francisco
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-sql@postgresql.org
Cc: josh@agliodbs.com, chriskl@familyhealth.com.au, wai_carmen@hotmail.com, pgsql-general@postgresql.org
Subject: Re: [SQL] Case in-sensitive
In-Reply-To: <200207241927.42145.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