From: Dennis Gearon <gearond@cvc.net>
To: nolan@celery.tssi.com
Cc: The Hermit Hacker <scrappy@postgresql.org>
Cc: Jan Wieck <JanWieck@Yahoo.com>
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 09:07:38 -0700
Message-ID: <3EF725CA.2060508@cvc.net> (raw)
In-Reply-To: <20030623053352.1457.qmail@celery.tssi.com>
References: <20030623053352.1457.qmail@celery.tssi.com>
Looks like there's some parts of that that would make a good todo.
nolan@celery.tssi.com wrote:
>>>Personally, if I want case insensitivity, I'll WRITE IT INTO THE CODE,
>>>but I can see how some people might think that 'NOLAN', 'Nolan' and
>>>'nolan' should be considered as the same data.
>>
>>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.
>
> Also, unlike PostgreSQL (at least in 7.3), if you define an index on
> the column, mysql appears to use it for LIKE queries.
>
> "SELECT * FROM table WHERE field LIKE 'nolan%';"
>
> is very fast in mysql but not in 7.3, and even non-anchored LIKE searches
> in mysql appear to be using the index.
>
> "SELECT * FROM table WHERE field LIKE '%nolan%';"
>
> executes considerably faster with an index on field than without one.
> --
> Mike Nolan
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
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: gearond@cvc.net, nolan@celery.tssi.com, scrappy@postgresql.org, JanWieck@Yahoo.com, 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: <3EF725CA.2060508@cvc.net>
* 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