Peter Eisentraut <[EMAIL PROTECTED]> writes:
> When I connect to a non-existing server over Unix-domain sockets I now
> simply get

> createdb: could not connect to database template1: could not create socket: No such 
> file or directory

I'm not getting quite that behavior --- how did you invoke it exactly?

But I agree that the error message is broken in the IPv6 code.  On a
machine with no IPv6 support (HPUX 10.20), I still get the right thing
from CVS tip:

$ createdb -p 7777
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.7777"?
createdb: database creation failed
$

But with the IPv6 code compiled (Red Hat 8.0), the error message is the
wrong one (it's for TCP not Unix connections):

$ createdb -p 7777
psql: could not connect to server: No such file or directory
        Is the server running on host ??? and accepting
        TCP/IP connections on port 7777?
createdb: database creation failed
$

I noticed this some weeks ago, but had not got round to investigating yet.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to