Re: can't connect to postmaster from other machine

Поиск
Список
Период
Сортировка
Искать
От
Walter Hop
Тема
Re: can't connect to postmaster from other machine
Дата
Msg-id
3388417147.20020207144559@i.r00ted.it
Ответ на
Список
Дерево обсуждения
can't connect to postmaster from other machine FOlkeN <folken@mac.com>
Re: can't connect to postmaster from other machine Einar Karttunen <ekarttun@cs.helsinki.fi>
Re: can't connect to postmaster from other machine Walter Hop <walter@binity.com>
Re: can't connect to postmaster from other machine FOlkeN <folken@mac.com>
Re: can't connect to postmaster from other machine Tom Lane <tgl@sss.pgh.pa.us>
Re: can't connect to postmaster from other machine Walter Hop <walter@binity.com>
[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 
 Updated contact information: http://www.binity.com/~walter/

В списке pgsql-novice по дате отправления
От: FOlkeN
Дата:
От: Walter Hop
Дата:
FAQ