Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a PostgreSQL 8.4 database, installed with Japanese as the main language. I am connecting from an English Windows 7 client using psql.exe. Is there any way to change the UI of the messages shown to me (e.g. the help, column headers from the \l command, etc) to English?

I know that I can set the character encoding using \encoding, but I really want to change the UI language from ja_JP to en_US (or similar).

I can't see anything in the psql documentation. Any ideas?

share|improve this question
    
In a Linux environment, this is controlled by environment variables on the client. If your OS is generally set to one language, psql should behave the same. Not sure why that doesn't work in your case. –  Peter Eisentraut Dec 25 '10 at 10:28

1 Answer 1

up vote 1 down vote accepted

In Windows also, psql only looks at the LC_MESSAGES envvar. Therefore this works...

set LC_MESAGES=C
psql.exe
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.