Re: Better auth errors from libpq

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joshua Drake <jd(at)commandprompt(dot)com>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Better auth errors from libpq
Date: 2008-09-12 03:34:26
Message-ID: 20080912033426.GH9856@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 11, 2008 at 11:28:36PM -0400, Tom Lane wrote:
> Joshua Drake <jd(at)commandprompt(dot)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?

Possibly not.

> 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.

I'd be delighted to make more different sizes.

> 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.

It's work that hasn't yet been done, and thanks for your input on the
first versions :)

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2008-09-12 03:52:58 Re: Better auth errors from libpq
Previous Message Tom Lane 2008-09-12 03:28:36 Re: Better auth errors from libpq