Installing Postgresql 9.4 on Centos 7 with the correct locale


I install postgresql9.4 on centos7 following this instruction .

In general, everything is set, but the default encodings are not satisfied:

Encoding SQL_ASCII
Collate  С
Ctype    C

Can you please tell me where to fix the configs or during

/usr/pgsql-9.4/bin/postgresql94-setup initdb

Indicate something?


answer from comment:

/usr/pgsql-9.4/bin/postgresql94-setup initdb --encoding=UTF8 --locale=ru_RU.UTF-8
Scroll to Top