Re: can't connect to postmaster from other machine - Mailing list pgsql-novice

From Walter Hop
Subject Re: can't connect to postmaster from other machine
Date
Msg-id 3388417147.20020207144559@i.r00ted.it
Whole thread Raw
In response to can't connect to postmaster from other machine  (FOlkeN <folken@mac.com>)
List pgsql-novice
[in reply to folken@mac.com, 07/02/2002]

> psql: PQconnectPoll() -- connect() failed: Operation timed out
>          Is the postmaster running (with -i) at '192.168.0.21'
>          and accepting connections on TCP/IP port 5432?

There are two ways to talk to postmaster:
a) via a UNIX socket (on the local machine)
b) via TCP-IP (local or via the network)

By default, postmaster does not listen on a TCP port. If the network is
okay and you can ping 192.168.0.21 successfully, chances are that
postmaster does not have a TCP port open, so it is not listening to
queries from the network.

Edit postgresql.conf on your database server machine, scroll down to where
it says "Connection Parameters". Is the value "tcpip_socket" set to true?
If it's set to false, change that and restart postmaster.

If it IS set to true, there is something else going on. If so, please
reply!

good luck,
walter

--
 Walter Hop <walter@binity.com>
 Updated contact information: http://www.binity.com/~walter/


pgsql-novice by date:

Previous
From: FOlkeN
Date:
Subject: can't connect to postmaster from other machine
Next
From: Walter Hop
Date:
Subject: Re: can't connect to postmaster from other machine