Re: duplicate connection failure messages - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: duplicate connection failure messages
Date
Msg-id 201011261653.oAQGrxw15870@momjian.us
Whole thread Raw
In response to Re: duplicate connection failure messages  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera wrote:
> Excerpts from Peter Eisentraut's message of vie nov 26 11:06:24 -0300 2010:
> 
> > Thanks for working on this.  However, the example I posted at the
> > beginning of this thread now does this:
> > 
> > $ ./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?
> 
> Shouldn't connectFailureMessage receive addr_cur as parameter?
> Otherwise it's not clear that it's getting the right params to report.

I am passing conn so I changed the code to always use addr_cur.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: duplicate connection failure messages
Next
From: Greg Smith
Date:
Subject: Re: Instrument checkpoint sync calls