PostgreSQL复制区域设置问题(Ubuntu主,Windows从)

xpcnnkqh  于 2023-06-21  发布在  PostgreSQL
关注(0)|答案(1)|浏览(339)

主服务器是Ubuntu 14.04,从服务器是Windows 2008 R2服务器,两者都运行PostgreSQL 9.6.5(64位)。我能够按照this guide设置和启动复制。从psql我可以确认正在复制更改,但由于以下错误消息,pgadmin 4不允许我连接:
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”,它们有些不等价。这是一个pgadmin缺陷还是我忘记做什么了?我现在就试试Windows 2012。

eanckbw9

eanckbw91#

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

相关问题