Merhaba,

Debian Lenny'de PostgreSQL 8.3'ü UTF8 olarak çalıştırıyorum (Debian yansısı ile 
kuruldu). Burada LATIN5 veritabanı yaratmak istediğimde hata alıyorum. Ne 
yapmak gerek?

(Sunucu ilk kurulduğunda en_US.UTF-8 ile kuruldu sonradan dpkg-reconfigure 
locales ile tr_TR.UTF-8 yapıldı. Postgresql.conf'u değiştirdim.)

postgres=# create database yyyy encoding 'UTF8';
CREATE DATABASE
postgres=# \l
           Veritabanlar1n1n listesi
        Ad1         |  Sahibi  | Dil Kodlamas1
--------------------+----------+---------------
 template0          | postgres | UTF8
 template1          | postgres | UTF8
 yyyy               | postgres | UTF8

postgres=# create database yyyy encoding 'LATIN5';
HATA:  LATIN5 dil kodlamas1, sunucu yereli ile (en_US.UTF-8) e_le_miyor
DETAIL:  Sunucunun LC_TYPE yerel ayar1, UTF8 dil kodlamas1n1 gerektirir.

postg...@server:~$ locale
LANG=tr_TR.UTF-8
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=

postg...@server:/etc/postgresql/8.3/main$ diff postgresql.conf_20100215  
postgresql.conf
440c440
< lc_messages = 'en_US.UTF-8'                   # locale for system error 
message
---
> lc_messages = 'tr_TR.UTF-8'                   # locale for system error 
> message
442,444c442,444
< lc_monetary = 'en_US.UTF-8'                   # locale for monetary formatting
< lc_numeric = 'en_US.UTF-8'                    # locale for number formatting
< lc_time = 'en_US.UTF-8'                               # locale for time 
formatting
---
> lc_monetary = 'tr_TR.UTF-8'                   # locale for monetary formatting
> lc_numeric = 'tr_TR.UTF-8'                    # locale for number formatting
> lc_time = 'tr_TR.UTF-8'                               # locale for time 
> formatting
447c447
< default_text_search_config = 'pg_catalog.english'
---
> default_text_search_config = 'pg_catalog.turkish'
451c451
< #explain_pretty_print = on
---
> explain_pretty_print = on




Email secured by Check Point
_______________________________________________
Linux-sunucu E-Posta Listesi
[email protected]

Liste kurallarını http://liste.linux.org.tr/kurallar.php  bağlantısından 
okuyabilirsiniz;

Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen 
e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 
dakika içinde üyeliğinizi sonlandırabilirsiniz.
http://liste.linux.org.tr/mailman/listinfo/linux-sunucu

Cevap