我的MS Windows系统是法语版.我最近安装了PostgreSQL服务器.虽然pgAdmin是英文的,但我在PostgreSQL psql命令行中获得了法语消息.
小智 14
如果您有权访问$datadir\postgresql.conf更改lc_messages参数English_United States.1252.您需要重新加载配置(重新启动服务器).
我的配置是:
# These settings are initialized by initdb, but they can be changed.
lc_messages = 'English_United States.1252' # locale for system error message
# strings
lc_monetary = 'English_United States.1252' # locale for monetary formatting
lc_numeric = 'English_United States.1252' # locale for number formatting
lc_time = 'English_United States.1252' # locale for time formatting
# default configuration for text search
default_text_search_config = 'pg_catalog.english'
Run Code Online (Sandbox Code Playgroud)