Redrock Postgres Documentation
Home Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Edit page

How to make the database display messages in Chinese?

Description

In order to make the database display messages in Chinese, how should the server and client of the PostgreSQL database be configured?

Answer

PostgreSQL display messages in the language that is defined by the current locale, which is selected during initdb. It is possible to select a different locale when creating a new database. You can adjust the language in which messages are displayed by modifying the parameter lc_messages:

lc_messages = 'zh_CN'

Notify the database service to reload the configuration file:

$ pg_ctl reload