Re: Can we improve this error message? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Can we improve this error message?
Date
Msg-id 6644.1461638452@sss.pgh.pa.us
Whole thread Raw
In response to Re: Can we improve this error message?  (Andreas Karlsson <andreas@proxel.se>)
List pgsql-hackers
Andreas Karlsson <andreas@proxel.se> writes:
> On 04/17/2016 09:28 PM, Bill Moran wrote:
>> What I believe is happening, is that the pg connection libs
>> first try to connect via ssl and get a password failed error,
>> then fallback to trying to connect without ssl, and get a "no
>> pg_hba.conf entry" error. The problem is that the second error
>> masks the first one, hiding the real cause of the connection
>> failure, and causing a lot of confusion.

> I got both the messages when I tried this with psql. What did you do 
> when you only got the second message?

Maybe Bill tried it with a rather old libpq?  This rings a bell
as being something we fixed awhile back.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Removing faulty hyperLogLog merge function
Next
From: Michael Paquier
Date:
Subject: Re: Suspicious behaviour on applying XLOG_HEAP2_VISIBLE.