I have a PostgreSQL 8.4 on Windows 7 machine, and my issue is that I have only the win1251
locale.
So when I create a database, I choose the UTF8 encoding and can select only lc_collate = Russian_Russia.Win1251
. And when I get any errors when I use JDBC I get unreadable logs.
How can I set a locale like en_US.UTF8
or ru_RU.UTF8
?
Best Answer
PostgreSQL 8.4 supports only one locales that is selected in installation time. You need to rerun initdb statement with different locales (but only one can be used) or you can migrate to 9.x version, that supports more locales.