BUG #8586: Misleading fe_sendauth error message - Mailing list pgsql-bugs

From mle+tools@mega-nerd.com
Subject BUG #8586: Misleading fe_sendauth error message
Date
Msg-id E1VfiQd-0003QU-BP@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #8586: Misleading fe_sendauth error message  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      8586
Logged by:          Erik de Castro Lopo
Email address:      mle+tools@mega-nerd.com
PostgreSQL version: 9.3.1
Operating system:   Debian GNU LInux
Description:

Running the command:


    PGPASSFILE=pgpass psql --no-password --username myname mydb
--command="\dt"


works fine if the port number in the pgpass file is correct, but if the port
number is incorrect the error message is:


    psql: fe_sendauth: no password supplied


which is highly misleading. Surely the error message should be "connection
refused" or some such?

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT
Next
From: Tom Lane
Date:
Subject: Re: BUG #8586: Misleading fe_sendauth error message