How to change cl_collate and lc-ctype in psql

Hello,

I want to create a psql database for one of the server's cpanel user with cl_collate and cl_ctype 'et_EE.UTF-8' but the database cluster is initialized with locale en_US.UTF-8 . So when I tried to create the db i got the folowing error:

createdb tester_asd --owner=tester -T template0 --lc-collate=et_EE.UTF-8 --lc-ctype=et_EE.UTF-8
createdb: unrecognized option `--lc-collate=et_EE.UTF-8'

Is there any way to create new et_EE.UTF-8 db without corrupting already created psql databases of other accounts?


Thanks in advance!
tanelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tbsgadiCommented:
The nature of some locale categories is that their value has to be fixed for the lifetime of a database cluster. That is, once initdb has run, you cannot change them anymore. LC_COLLATE and LC_CTYPE are those categories.

http://www.postgresql.org/docs/8.1/static/charset.html

Gary
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.