| From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
|---|---|
| To: | Sonia Sánchez Díaz <geek24(at)avantel(dot)net> |
| Cc: | pgsql <pgsql-general(at)postgresql(dot)org>, pgadmin <pgsql-admin(at)postgresql(dot)org> |
| Subject: | Re: About lower and uppercase |
| Date: | 2002-11-05 05:50:06 |
| Message-ID: | 20021104214740.U19332-100000@megazone23.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin pgsql-general |
On Mon, 4 Nov 2002, [iso-8859-1] Sonia Snchez Daz 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | frbn | 2002-11-05 08:22:37 | Re: [ADMIN] About lower and uppercase |
| Previous Message | Tom Lane | 2002-11-05 04:39:01 | Re: Vacuum return codes (vacuum as db integrity check?) |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Neil Conway | 2002-11-05 05:57:24 | Re: [HACKERS] PostgreSQL IRC Channel... who's the Admin? |
| Previous Message | Justin Clift | 2002-11-05 04:35:05 | PostgreSQL IRC Channel... who's the Admin? |