Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is there a way to force PostgreSQL commands (pg_ctl, postgres, initdb, etc.) to run in English and not honor the system locale? Thank you!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can set locale related environment variables (LC_LANG, LC_ALL etc) during command execution:

LC_ALL=locale_name command_name


LC_ALL=en_US.UTF-8 postgres
share|improve this answer
It worked, thank you! –  adrianboimvaser May 22 '13 at 15:26

Your Answer


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.