duplicate connection failure messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема duplicate connection failure messages
Дата
Msg-id 1286997662.4671.17.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: duplicate connection failure messages  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
This surprised me:

psql -p 55555 -h localhost
psql: could not connect to server: Connection refused       Is the server running on host "localhost" and accepting
 TCP/IP connections on port 55555?
 
could not connect to server: Connection refused       Is the server running on host "localhost" and accepting
TCP/IPconnections on port 55555?
 

It shows the same error message twice.  I can reproduce this back to PG
8.2.

It appears to have something to do with localhost resolving to an IPv4
and an IPv6 address, since it doesn't happen with other host names that
only resolve to one address.  However, fe-connect.c claims:
   /*    * Try to initiate a connection to one of the addresses    * returned by pg_getaddrinfo_all().  conn->addr_cur
isthe    * next one to try. We fail when we run out of addresses    * (reporting the error returned for the *last*
alternative,   * which may not be what users expect :-().    */
 




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Garick Hamlin
Дата:
Сообщение: Re: SQL command to edit postgresql.conf, with comments
Следующее
От: Sergey Burladyan
Дата:
Сообщение: FreeBSD 8.0 i386, plpythonu, threaded Python not supported on this platform