pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: select lower('ÆØÅ ABC'); does
Date: 25 May 2003 20:22:17 +0200
Message-ID: <1053886937.28728.1.camel@saphir> (raw)
In-Reply-To: <2862.1053832051@sss.pgh.pa.us>
References: <1kqza.10221$YZ6.333198@news010.worldonline.dk>
	<2862.1053832051@sss.pgh.pa.us>

В Вск, 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@saphir bert $ su - 
Password: 
saphir root # su - postgres
postgres@saphir postgresql $ pg_controldata /var/lib/postgresql/data/ |
grep LC
LC_COLLATE:                           ru_RU.UTF-8
LC_CTYPE:                             ru_RU.UTF-8
postgres@saphir postgresql $ logout
saphir root # logout
bert@saphir bert $ psql template1 postgres
Добро пожаловать в psql 7.3.2 - Интерактивный Терминал PostgreSQL.

template1=# select lower('äÄöÖüÜабвгдАБВГД');
              lower               
----------------------------------
 äÄöÖüÜабвгдАБВГД
(1 запись)

template1=# \q
bert@saphir bert $ 

What gives?

-- 
Markus Bertheau.
Berlin, Berlin.
Germany.



Message-ID: <1053886937.28728.1.camel@saphir>
Permalink:  ../1053886937.28728.1.camel@saphir/
Also on:    postgresql.org/message-id/1053886937.28728.1.camel@saphir

 · 

reply

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-sql@postgresql.org
  Cc: twanger@bluetwanger.de, tgl@sss.pgh.pa.us
  Subject: Re: select lower('ÆØÅ ABC'); does
  In-Reply-To: <1053886937.28728.1.camel@saphir>

* 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