参考文章:https://www.postgresql.org/docs/current/locale.html

Microsoft Windows [版本 10.0.17134.765]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>d:

D:\>cd highgo\database\5.6.3\bin

D:\highgo\database\5.6.3\bin>psql highgo://highgo:aaaaaa@192.168.93.1:5868
psql (5.6.3)

PSQL: Release 5.6.3
Connected to:
HighGo Database V5.6 Debug Edition Release 5.6.3 - 64-bit Production

输入 "help" 来获取帮助信息. ----->>>>中文

highgo=# \q

D:\highgo\database\5.6.3\bin>set lc_messages=C ----->>>>用大写的LC_MESSAGES环境变量名也可以。请注意,LC_MESSAGES的后边不要带空格
或者:
D:\highgo\database\5.6.3\bin>set lc_messages=en_us.utf-8

D:\highgo\database\5.6.3\bin>psql highgo://highgo:q1w2e3r4@192.168.80.1:5868
psql (5.6.3)

PSQL: Release 5.6.3
Connected to:
HighGo Database V5.6 Debug Edition Release 5.6.3 - 64-bit Production

Type "help" for help. ----->>>>英文

highgo=# select count(*)from pg_settings;
count
-------
291
(1 row) ----->>>>英文


highgo=#