作者qrtt1 (null)
看板Database
標題[系統] 如何查詢 postgreSQL 能使用的 locale ?
時間Fri Nov 6 18:36:17 2009
Hello,
今天試著下載 postgresSQL 預先編譯的版本(zip) 回來試用
測試的環境是 windows xp
在 initdb 時遇到的問題,不知道除了宣告沒有 locale 之外
還能宣告什麼 locale
======================================================
下列指令是能建立 db 的:
initdb.exe --locale=C c:\app\pgsql\db_data
但訊息顯示:
The database cluster will be initialized with locale C.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to "english".
======================================================
我想應該有別的 locale 能夠指定,
自己試著填 zh_TW 會得到不合法 locale 的訊息提示:
invalid locale name "zh_TW"
試了 en_US 也是錯誤的,若是在 linux 下能使用 locale -a
查詢可供使用的 locale,想請問版友在 windows 下該如何查詢?
PS. 當什麼都不填會有下列錯誤:
C:\app\pgsql>bin\initdb.exe c:\app\pgsql\db_data2
The files belonging to this database system will be owned by user "qrtt1".
This user must also own the server process.
The database cluster will be initialized with locale Chinese_Taiwan.950.
initdb: locale Chinese_Taiwan.950 requires unsupported encoding BIG5
Encoding BIG5 is not allowed as a server-side encoding.
Rerun initdb with a different locale selection.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.165.131