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?