[ M902 @ 15.07.2008. 13:05 ] @
Incijalizovao sam bazu sa pogresnim encodingom.

Probao sam sa ponovnom inicijalizacijom ali...


The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locales
COLLATE: C
CTYPE: en_US
MESSAGES: en_US
MONETARY: en_US
NUMERIC: en_US
TIME: en_US
initdb: encoding mismatch
The encoding you selected (UTF8) and the encoding that the
selected locale uses (LATIN1) do not match. This would lead to
misbehavior in various character string processing functions.
Rerun initdb and either do not specify an encoding explicitly,
or choose a matching combination.

Moze li se to izvesti bez rusenja?
[ alex @ 18.07.2008. 14:55 ] @
Sta zapravo smatras pod "rusenjem"?

Kreiranoj bazi ne mozes da promenis default encoding, to mozes da podesis samo prilikom kreiranja baze (createdb komandom). Ukoliko zelis da promenis encoding template bazi, to mozes uraditi sa initdb komandom (-E encoding).

Ako vec postojecoj bazi hoces da promenis encoding, dump-uj bazu i onda je ponovo kreiraj i vrati dump.
[ M902 @ 18.07.2008. 19:39 ] @

Kreiranje baze nije prolazilo, sa slicnom porukom oko encodinga. Zato sam probao sa prazmim:

initdb -D /usr/share/postgresql/data1

sa gornjim rezultatom.
Zakljucio sam da instalacija u startu nema kofigurisanu podrsku za utf8. Mislim da se podesava u postgresql.conf ali za svaki slucaj usledilo je "rusenje" i instaliranje starije verzije i sad radi.