我使用默认选项安装了postgresql-8.4包。一切正常,但是我似乎无法创建 unicode 数据库:
-- This doesn't work
createdb test1 --encoding UNICODE
-- This works
createdb test2
Run Code Online (Sandbox Code Playgroud)
错误信息,
createdb: database creation failed: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
Run Code Online (Sandbox Code Playgroud)
有点令人费解,因为(afaik)我没有使用模板来创建新的数据库,还是出于某种原因隐式地引用了默认的“postgres”数据库?
或者我可能缺少.conf文件中的设置?
我需要订购一台新服务器来托管 PostgreSQL 8.4 数据库,但是我必须在 Ubuntu 9 或 10 之间进行选择:哪一个会更好/对一个或另一个有什么特殊警告?
postgresql ×2