Change language of system and error messages in PostgreSQL

前端 未结 4 447
心在旅途
心在旅途 2020-12-13 18:09

Is it possible to change the language of system messages from PostgreSQL?

In MSSQL for instance this is possible with the SQL statement SET LANGUAGE.

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 18:48

    For me neither Milen A. Radev's nor user1's answer worked - editing PostgreSQL\11\data\postgresql.conf had absolutely no effect. Even after setting lc_messages = 'random value' PostgreSQL would still start.

    What helped was to delete PostgreSQL\11\share\locale\*\LC_MESSAGES, after that I finally got English messages.

提交回复
热议问题