Error message on missing SCRAM authentication with older clients

From: Heikki Linnakangas <hlinnakangas(at)pivotal(dot)io>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Error message on missing SCRAM authentication with older clients
Date: 2017-05-03 08:58:56
Message-ID: bbf45d92-3896-eeb7-7399-2111d517261b@pivotal.io
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2017-05-03 08:59:46 Error message on missing SCRAM authentication with older clients
Previous Message Magnus Hagander 2017-05-03 08:46:51 Re: scram and \password