我使用默认选项安装了postgresql-8.4软件包。一切正常,但是我似乎无法设法创建unicode数据库:
-- This doesn't work
createdb test1 --encoding UNICODE
-- This works
createdb test2
错误消息,
createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) 
有点令人困惑,因为(afaik)我没有使用模板来创建新的数据库,还是出于某种原因隐式地引用了默认的“ postgres”数据库?
或者,也许我缺少.conf文件中的设置?