Re: [HACKERS] Removal of plaintext password type references - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] Removal of plaintext password type references
Date
Msg-id CAB7nPqSKhOpEOeRQB4pTe5zSBiwbDsfM4jh0nFdcd6LjkMQ-Pg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Removal of plaintext password type references  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] Removal of plaintext password type references  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
On Wed, May 10, 2017 at 10:22 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Wed, May 10, 2017 at 10:01 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Heikki Linnakangas <hlinnaka@iki.fi> writes:
>>> Also note that changing the signature check_password_hook_type would
>>> break any external modules that use the hook. Removing
>>> PASSWORD_TYPE_PLAINTEXT will do that too, because any password hook
>>> function would use that constant (see e.g. contrib/passwordcheck). If we
>>> were to change the signature, I'd actually like to simplify it by
>>> removing the password_type parameter altogether. The hook function can
>>> call get_password_type() on the password itself to get the same
>>> information. But it's not worth changing the API and breaking external
>>> modules for that.
>
> Ahah. I just had the same thought before reading this message.

And attached is a patch to do that. I am all for this one to get a
more simple interface in place.
-- 
Michael

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Vaishnavi Prabakaran
Date:
Subject: Re: [HACKERS] Removal of plaintext password type references
Next
From: Michael Paquier
Date:
Subject: [HACKERS] Race conditions with WAL sender PID lookups