From: Bruno Wolff III <bruno@wolff.to>
To: Alexander B. <burbello3000@yahoo.com.br>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Case-sensitive
Date: Thu, 25 Jan 2007 11:45:58 -0600
Message-ID: <20070125174558.GA7220@wolff.to> (raw)
In-Reply-To: <45B88BEC.5050209@yahoo.com.br>
References: <45B88BEC.5050209@yahoo.com.br>
On Thu, Jan 25, 2007 at 08:52:28 -0200,
"Alexander B." <burbello3000@yahoo.com.br> wrote:
> Hi,
>
> One developer asked me about case-sensitive, if its possible disable
> Postgres not consider when using comparative functions.
> Eg.:
> select * from people
> where upper(name) like upper('A%');
>
> Is there any parameter that don't take in account case-sensitive, or any
> other way to treat??
You can use ilike, though using upper (on the column, not the pattern) has the
advantage that you can create functional indexes that can be used to speed
things up in some cases. There is also an operator for doing case insensitive
regular expression matching.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, burbello3000@yahoo.com.br
Subject: Re: Case-sensitive
In-Reply-To: <20070125174558.GA7220@wolff.to>
References: <45B88BEC.5050209@yahoo.com.br> <20070125174558.GA7220@wolff.to>
* 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