PostgreSQL复制语言环境问题(Ubuntu Master,Windows Slave)



主是Ubuntu 14.04,从属是Windows 2008 R2服务器,均运行PostgreSQL 9.6.5(64位)。可以根据本指南进行设置和启动复制。从PSQL我可以确认正在复制更改,但是由于以下错误消息,PGADMIN4不会让我连接:

FATAL: database locale is incompatible with operating system DETAIL: The database was initialized with LC_COLLATE "en_CA.UTF-8", which is not recognized by setlocale(). HINT: Recreate the database with another locale or install the missing locale.

我的理解是,Linux上的语言环境为" en_ca.utf-8",Windows上的" English_Canada.1252"是" Englister_canada.1252",并且它们不等。这是PGADMIN缺陷还是我忘记做某事?我现在将在Windows 2012上尝试。

sudo locale-gen en_CA.UTF-8
sudo update-locale LANG=en_CA.UTF-8
sudo service postgresql restart

最新更新