Error message on missing SCRAM authentication with older clients

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Error message on missing SCRAM authentication with older clients
Date: 2017-05-03 08:59:46
Message-ID: 5261b6b1-4929-98f1-05fb-02663408cebc@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Currently, if you use 9.6 libpq to connect to a v10 server that requires
SCRAM authentication, you get an error:

psql: authentication method 10 not supported

I'd like to apply this small patch to all the stable branches, to give a
nicer error message:

psql: SCRAM authentication not supported by this version of libpq

It won't help unless you upgrade to the latest minor version, of course,
but it's better than nothing. Any objections?

- Heikki

Attachment Content-Type Size
backport-nicer-error-on-scram.patch invalid/octet-stream 1.5 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Stas Kelvich 2017-05-03 09:02:41 Re: Logical replication ApplyContext bloat
Previous Message Heikki Linnakangas 2017-05-03 08:58:56 Error message on missing SCRAM authentication with older clients