Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> It had to do with me having a bogus password in .pgpass (so psql was
> first trying empty password, then the one in .pgpass, and both failing).
> Pilot error. However, I'd say that we ought to give a notice if the
> password in .pgpass fails.
Can we do something like
ERROR: password authentication failed (using password from .pgpass)
ie, just tack on a comment to the error message?
regards, tom lane