Better auth errors from libpq - Mailing list pgsql-hackers

From David Fetter
Subject Better auth errors from libpq
Date
Msg-id 20080912024449.GE9856@fetter.org
Whole thread Raw
Responses Re: Better auth errors from libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Folks,

Far and away the most common question we get in IRC includes phrases
like:

    psql: FATAL:  Ident authentication failed for user "root"

This isn't exactly informative to newbies, so I'm proposing a patch
like that attached for such failures.  Instead of seeing that
mysterious message, they'd get something like this:

    psql: FATAL:  Ident authentication failed for user "root"
    HINT:  Is pg_hba.conf set properly on the server?

Also good would be some way to make man pages and whatever Windows
uses both for pg_hba.conf and for postgresql.conf.  Any hints as to
how to start this would be most welcome :)

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

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

Attachment

pgsql-hackers by date:

Previous
From: Ron Mayer
Date:
Subject: Re: Proposed patch: make SQL interval-literal syntax work per spec
Next
From: Tom Lane
Date:
Subject: Re: Better auth errors from libpq