我已经安装了 Windows 10 秋季更新 (1709),现在我的 PostgreSQL 9.5 服务器无法启动。它昨天在更新前工作,我没有对配置进行任何更改。
我检查了事件查看器并发现以下错误消息:
2017-10-19 11:32:32 CEST LOG: invalid value for parameter "lc_monetary": "Czech_Czech Republic.1250"
2017-10-19 11:32:32 CEST LOG: invalid value for parameter "lc_numeric": "Czech_Czech Republic.1250"
2017-10-19 11:32:32 CEST LOG: invalid value for parameter "lc_time": "Czech_Czech Republic.1250"
2017-10-19 11:32:32 CEST FATAL: configuration file "C:/Program Files/PostgreSQL/9.5/data/postgresql.conf" contains errors
Run Code Online (Sandbox Code Playgroud)
似乎微软在秋季更新时更改了语言环境名称,我找不到任何可用语言环境名称的列表,所以我决定安装 Postgres 10 并证实了我的怀疑,Postgres 10 中的 postgresql.conf 现在显示为:
# These settings are initialized by initdb, but they can be changed.
lc_messages = 'Czech_Czechia.1250' # locale for system error …
Run Code Online (Sandbox Code Playgroud)