From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Sonia Sánchez Díaz <geek24@avantel.net>
Cc: pgsql <pgsql-general@postgresql.org>
Cc: pgadmin <pgsql-admin@postgresql.org>
Subject: Re: About lower and uppercase
Date: Mon, 4 Nov 2002 21:50:06 -0800 (PST)
Message-ID: <20021104214740.U19332-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <00af01c2847f$18792220$ffd6fea9@avantel.net>
On Mon, 4 Nov 2002, [iso-8859-1] Sonia Sánchez Díaz wrote:
> Hi!
>
> I don't know if this is possible from postgresql configuration...
>
> I want to ignore the use of uppercase and lowercase from the data restored
> into the DB...
>
> I mean, if I write a query like this:
>
> select * from fruits where fruit_name like 'orange';
>
> I could get any result where the string looks like:
>
> orange
> Orange
> ORANGE
>
> Is it possible???
Not really without doing a little bit of changing
to the query (for example using ILIKE rather than LIKE
or lower(fruit_name) like 'orange' with an appropriate
index on lower(fruit_name).
Theoretically, it could perhaps be possible to create a locale
which compare 'orange' and 'OraNgE' equally and then
initdb in that locale, but I've never tried it so I don't
know if it'd work.
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: sszabo@megazone23.bigpanda.com, geek24@avantel.net, pgsql-general@postgresql.org
Subject: Re: About lower and uppercase
In-Reply-To: <20021104214740.U19332-100000@megazone23.bigpanda.com>
References: <00af01c2847f$18792220$ffd6fea9@avantel.net> <20021104214740.U19332-100000@megazone23.bigpanda.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