Skip site navigation (1) Skip section navigation (2)

Re: Case-sensitive

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Alexander B(dot)" <burbello3000(at)yahoo(dot)com(dot)br>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Case-sensitive
Date: 2007-01-25 17:45:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Thu, Jan 25, 2007 at 08:52:28 -0200,
  "Alexander B." <burbello3000(at)yahoo(dot)com(dot)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.

In response to

pgsql-admin by date

Next:From: Ray StellDate: 2007-01-26 14:39:03
Subject: Re: log entries in 8.2.1
Previous:From: Campbell, LanceDate: 2007-01-25 16:53:52
Subject: Re: Logging just SQL commands in an SQL script format

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group