From: Jan Wieck <JanWieck@Yahoo.com>
To: Lincoln Yeoh <lyeoh@pop.jaring.my>
Cc: nolan@celery.tssi.com, The Hermit Hacker <scrappy@postgresql.org>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: Joe Conway <mail@joeconway.com>
Cc: Advocacy PostgreSQL <pgsql-advocacy@postgresql.org>
Cc: PostgreSQL-general <pgsql-general@postgresql.org>
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Date: Mon, 23 Jun 2003 08:21:44 -0400
Message-ID: <3EF6F0D8.9070408@Yahoo.com> (raw)
References: <20030623015333.E95856@hub.org>
<5.2.1.1.1.20030623221452.02f7fd48@mbox.jaring.my>
Lincoln Yeoh wrote:
> At 12:33 AM 6/23/2003 -0500, nolan@celery.tssi.com wrote:
>> >
>> > Oh, you mean like "SELECT * FROM table WHERE field ~* 'nolan';"?
>>
>>No, I mean as in "SELECT * FROM table WHERE field = 'nolan';"
>>
>>That will match values with any combination of upper and lower case
>>letters that fold to 'nolan': 'Nolan', 'NOLAN', etc.
>
> For me that's a matter of taste. I prefer to use = for case sensitive and
> lower(field)=lower('data') for case insensitive. I wonder if there is a
> difference between using lower vs upper for case insensitivity but I've
> never bothered to look deeply into it.
In some character sets there might be. The German sz-ligature for
example has no upper case equivalent, and in turkish the upper cases of
i and y with two dots are exchanged.
I prefer your example too and since we have functional indexes, it
doesn't affect performance at all.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
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-docs@postgresql.org
Cc: JanWieck@Yahoo.com, lyeoh@pop.jaring.my, scrappy@postgresql.org, pgman@candle.pha.pa.us, josh@agliodbs.com, mail@joeconway.com, pgsql-advocacy@postgresql.org, pgsql-general@postgresql.org
Subject: Re: [GENERAL] interesting PHP/MySQL thread
In-Reply-To: <3EF6F0D8.9070408@Yahoo.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