Re: Case in-sensitive - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Case in-sensitive
Date
Msg-id 200207241927.42145.josh@agliodbs.com
Whole thread Raw
In response to Re: Case in-sensitive  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: Case in-sensitive
Next
From: Richard Huxton
Date:
Subject: Re: convert a bigint into a timestamp