LoginSignup
9
10

More than 5 years have passed since last update.

PostgreSQL エラーメッセージが文字化け

Posted at

自分用備忘録

PostgreSQLのエラーメッセージで以下のように文字化けで出力される

ERROR: ??????"mst_table"???????

PostgreSQLの設定ファイルで以下のように変更することで英語で表示され、エラー内容がわかるようになる。

C:\Program Files\PostgreSQL\9.4\data\postgresql.conf

postgresql.conf
<変更前>
lc_messages = 'Japanese_Japan.932'          # locale for system error message
postgresql.conf
<変更後>
#lc_messages = 'Japanese_Japan.932'         # locale for system error message
lc_messages = 'en_US'

上記の変更後、PostgreSQLを再起動。
再度実行した結果以下のように英語で出力されます。

ERROR: relation "mst_table" does not exist
9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10