Sry für den Doppelpost! Juhu! Aber es geht voran! Ich habe die pg_hba.conf editiert und zwar wie folgend:
Also aus
IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 0.0.0.0/0 md5IPv6 local connections:
#host all all ::1/128 md5
Habe ich folgendes gemacht
TYPE DATABASE USER CIDR-ADDRESS METHOD
local all all trust
\TYPE DATABASE USER CIDR-ADDRESS METHOD
IPv4 local connections:
host all all 127.0.0.1/32 trust
#host all all 0.0.0.0/0 md5IPv6 local connections:
#host all all ::1/128 md5
So nun gibts die nächste Fehlermeldung auf der Konsole:
database create
database register
dbi:Fehler:ungültige Byte-Sequenz für Kodierung »UTF8«: 0xe46c6c
schema registration error
database error
Die Datenbank pid-test wurde tatsächlich angelegt. Aber noch nicht mit Tables gefüllt! (schonmal ein Erfolg)
Im log steht folgendes.
2012-04-05 10:46:04 CEST FATAL: Datenbank »pid_test« existiert nicht
2012-04-05 10:46:12 CEST FEHLER: ungültige Byte-Sequenz für Kodierung »UTF8«: 0xe46c6c
2012-04-05 10:46:12 CEST TIPP: Dieser Fehler kann auch auftreten, wenn die Bytesequenz nicht mit der Kodierung übereinstimmt, die der Server erwartet, welche durch »client_encoding« bestimmt wird.
So scheint sich also um einen UTF8 Fehler zu handeln.
Hierzu steht sogar etwas in der Doku .
Another problem has been reported concerning character set incompatibilities
using the PostgreSQL database on systems using UNICODE. On those systems,
the database tables are also encoded in UNICODE by default. Errors occurred
when data was passed from the Program to the database. One way to solve
this problem is to set the system locales in a way that no UTF-8 encoding is used
(set LC CTYPE to de DE@euro or en US, for example). The database tables should
then be encoded in SQL ASCII, LATIN1, or LATIN9 respectively. Another solution
might be to set the default database language to a non-UNICODE language
when creating the database cluster (initdb --encoding SQL ASCII). However,
this solution has not been tested, yet.
So ich versuche mich nun mal am neuen Problem. Falls es klappt gebe ich mal wieder feedback.