
有沒有辦法強制 PostgreSQL 指令(pg_ctl
、postgres
、initdb
等)以英文運作而不遵循系統區域設定?謝謝你!
答案1
您可以在命令執行期間設定與語言環境相關的環境變數(LC_LANG、LC_ALL 等):
LC_ALL=locale_name command_name
例如
LC_ALL=en_US.UTF-8 postgres
有沒有辦法強制 PostgreSQL 指令(pg_ctl
、postgres
、initdb
等)以英文運作而不遵循系統區域設定?謝謝你!
您可以在命令執行期間設定與語言環境相關的環境變數(LC_LANG、LC_ALL 等):
LC_ALL=locale_name command_name
例如
LC_ALL=en_US.UTF-8 postgres