Re: Better auth errors from libpq - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Better auth errors from libpq
Date
Msg-id 23767.1221190116@sss.pgh.pa.us
Whole thread Raw
In response to Re: Better auth errors from libpq  (Joshua Drake <jd@commandprompt.com>)
Responses Re: Better auth errors from libpq  (David Fetter <david@fetter.org>)
Re: Better auth errors from libpq  (David Fetter <david@fetter.org>)
Re: Better auth errors from libpq  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Better auth errors from libpq  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Joshua Drake <jd@commandprompt.com> writes:
> I think something like:

> psql: FATAL:  Ident authentication failed for user "root"
> HINT: http://www.postgresql.org/docs/8.3/static/client-authentication.html

> Would be nice.

Do you really think that's helpful in the typical case where someone
fat-fingered their password?

I'm not averse to hint messages that are actually helpful, ie,
reasonably connected to the *specific* failure situation.  The problem
I've got with David's proposal is that it provides a one-size-fits-all
hint for every possible auth failure.  One size does not fit all here.

Or to put it even more baldly: this is not an area in which you can
improve matters significantly with five minutes' thought and a one-line
patch.  It would take some actual work.
        regards, tom lane


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Better auth errors from libpq
Next
From: David Fetter
Date:
Subject: Re: Better auth errors from libpq