BUG #8586: Misleading fe_sendauth error message

From: mle+tools(at)mega-nerd(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8586: Misleading fe_sendauth error message
Date: 2013-11-11 03:44:43
Message-ID: E1VfiQd-0003QU-BP@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 8586
Logged by: Erik de Castro Lopo
Email address: mle+tools(at)mega-nerd(dot)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?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-11-11 04:11:56 Re: BUG #8586: Misleading fe_sendauth error message
Previous Message Tom Lane 2013-11-11 03:21:18 Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT