Re: can't connect to postmaster from other machine

From: Walter Hop <walter(at)binity(dot)com>
To: FOlkeN <folken(at)mac(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: can't connect to postmaster from other machine
Date: 2002-02-07 13:45:59
Message-ID: 3388417147.20020207144559@i.r00ted.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

[in reply to folken(at)mac(dot)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(at)binity(dot)com>
Updated contact information: http://www.binity.com/~walter/

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Einar Karttunen 2002-02-07 13:46:35 Re: can't connect to postmaster from other machine
Previous Message FOlkeN 2002-02-07 12:52:07 can't connect to postmaster from other machine