From: | Markus Bertheau <twanger(at)bluetwanger(dot)de> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: select lower('ÆØÅ ABC'); does |
Date: | 2003-05-25 18:22:17 |
Message-ID: | 1053886937.28728.1.camel@saphir |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
В Вск, 25.05.2003, в 05:07, Tom Lane пишет:
> You need to run initdb in the correct locale. LC_COLLATE and LC_CTYPE
> are both locked down at initdb time, and the latter determines the
> behavior of lower(). You could use pg_controldata to check the
> database's LC_CTYPE, but I'll bet that it's not a Danish locale.
>
bert(at)saphir bert $ su -
Password:
saphir root # su - postgres
postgres(at)saphir postgresql $ pg_controldata /var/lib/postgresql/data/ |
grep LC
LC_COLLATE: ru_RU.UTF-8
LC_CTYPE: ru_RU.UTF-8
postgres(at)saphir postgresql $ logout
saphir root # logout
bert(at)saphir bert $ psql template1 postgres
Добро пожаловать в psql 7.3.2 - Интерактивный Терминал PostgreSQL.
template1=# select lower('äÄöÖüÜабвгдАБВГД');
lower
----------------------------------
äÄöÖüÜабвгдАБВГД
(1 запись)
template1=# \q
bert(at)saphir bert $
What gives?
--
Markus Bertheau.
Berlin, Berlin.
Germany.
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Wood | 2003-05-25 21:44:25 | date interpolation |
Previous Message | Stephan Szabo | 2003-05-25 16:07:17 | Re: tablename as attribute in pgplsql |