Quote:
Originally Posted by futurity
It looks like initdb could not determine your system's locale when it was run, which would suggest an overall system misconfiguration.
You can explicitly specify a database's encoding using CREATE DATABASE. So one option might be to drop your template databases and recreate them using the proper settings.
Another option might be to nuke the entire cluster and re-run initdb with the proper settings.
|
OK. Just in queue
I do not know why it couldn't used my system locales. Is it possible reason?:
My locale.gen file looks like this:
Code:
hu_HU.UTF8 UTF8
en_us.UTF8 UTF8
Is there a missing one like this?:
It looks strange. UTF8 is a base type. It is not needed to generate again, is it?
Everything works fine in my system, just this program doesn't. I cannot start from scratch again and the same difficulties liable to occur.
Code:
CREATE DATABASE tablename WITH TEMPLATE template0 ENCODING 'utf8';
This works, but doesn't like for me, because of the long command, so this one also doesn't:
Code:
CREATE DATABASE template2 WITH TEMPLATE template0 ENCODING 'utf8';
...and after this every new database can be created with this template:
Code:
CREATE DATABASE testDB WITH TEMPLATE template2;
"nuke entire cluster"…
I haven't got $PGDATA…
Against I do not want to reconfigure everything, I cannot see other way to solve. Can You help to me? What is needed to reconfigure all?
How to remove postgresql with all data and mainly how can I configure it to use UTF8 as default encoding type? I've searched this a lot, but nowhere found a --config option to set up.