作者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