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

From Magnus Hagander
Subject Re: Can we improve this error message?
Date
Msg-id CABUevEw1m6=FBq+ywbKhB+_x4aroVvzPmCzJmdAJRhnErfq+4Q@mail.gmail.com
Whole thread Raw
In response to Can we improve this error message?  (Bill Moran <wmoran@potentialtech.com>)
List pgsql-hackers
<p dir="ltr"><br /> On Apr 26, 2016 4:41 AM, "Tom Lane" <<a
href="mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us</a>>wrote:<br /> ><br /> > Andreas Karlsson <<a
href="mailto:andreas@proxel.se">andreas@proxel.se</a>>writes:<br /> > > On 04/17/2016 09:28 PM, Bill Moran
wrote:<br/> > >> What I believe is happening, is that the pg connection libs<br /> > >> first try to
connectvia ssl and get a password failed error,<br /> > >> then fallback to trying to connect without ssl, and
geta "no<br /> > >> pg_hba.conf entry" error. The problem is that the second error<br /> > >> masks
thefirst one, hiding the real cause of the connection<br /> > >> failure, and causing a lot of confusion.<br
/>><br /> > > I got both the messages when I tried this with psql. What did you do<br /> > > when you
onlygot the second message?<br /> ><br /> > Maybe Bill tried it with a rather old libpq?  This rings a bell<br />
>as being something we fixed awhile back.<br /> ><p dir="ltr">Yeah, libpq used to keep just one error
message. Iirc,this was changed quite long ago though, but I guess if it's a really old libpq.. <p dir="ltr">/Magnus 

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: pg_dump dump catalog ACLs
Next
From: Daniel Gustafsson
Date:
Subject: Typo in execProcnode.c documentation