Re: Lower case - Mailing list pgsql-general

From Vladimir S. Petukhov
Subject Re: Lower case
Date
Msg-id 200501270016.14782.vladimir@sycore.org
Whole thread Raw
In response to Re: Lower case  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Lower case  (Dawid Kuroczko <qnex42@gmail.com>)
List pgsql-general
On Wednesday 26 January 2005 20:01, you wrote:
> "Vladimir S. Petukhov" <vladimir@sycore.org> writes:
> > pg_controldata /var/pgsql/data
> > ...
> > LC_COLLATE:                           ru_RU
> > LC_CTYPE:                             ru_RU
> >
> > bash-2.05b# psql -l
> >         List of databases
> >    Name    |  Owner   | Encoding
> > -----------+----------+----------
> >  testdb   | postgres | UNICODE
> >
> > And LIKE, ILIKE, ~ do not recognize upper/lower case..
>
> What character encoding is implied by those LC_ settings on your machine?
> If it's different from the database encoding (here utf8) these things
> won't actually work right.
LANG=ru_RU.koi8r
LC_ALL=ru_RU.koi8r
But how it act on lower/upper cases? Client use utf-8 encoding...

>
> Also, before PG 8.0 upper/lower simply don't work on multibyte characters,
> which means you'd have to use a single-byte encoding to make it work
> (I think koi8 is single-byte but not sure).
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly

--
You feel a whole lot more like you do now than you did when you used to.

Now playing:
   AutoGenerated by fortune & xmms...

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Lower case
Next
From: "Lee Harr"
Date:
Subject: Re: Apparently I don't understand full outer joins....