Christian Stalp wrote:

Christian,
what is the result of this:

netstat -an | grep 5432
nothing ;-)  The server does not here on the net. But with pure DBI, can i
do it without IP? For the first connection I mean? I mean with an
UNIX-Socket or however DBI connects to a local server?

Gruss Christian

Christian,
that explains a lot. Even with your original syntax, your script was attempting to connect to the localhost by default and port 5432. you're just running a local unix domain socket not a TCP/IP socket. can't you start up postgresql on localhost and port 5432?

pg_ctl stop - will stop the database


pg_ctl -w -o "-h 127.0.0.1 -p 5432" -l logfile start - will start it backup try this, then run your script.

you have to be the postgres user.

Reply via email to