pgsql: Fix handling of previous password hooks in passwordcheck - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix handling of previous password hooks in passwordcheck
Date
Msg-id E1hsz7r-0001Dr-K2@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix handling of previous password hooks in passwordcheck

When piling up loading of modules using check_password_hook_type,
loading passwordcheck would remove any trace of a previously-loaded
hook.  Unloading the module would also cause previous hooks to be
entirely gone.

Reported-by: Rafael Castro
Author: Michael Paquier
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/15932-78f48f9ef166778c@postgresql.org
Backpatch-through: 9.4

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/957b822b5294bd3e19aab21b6cb937822db11673

Modified Files
--------------
contrib/passwordcheck/passwordcheck.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix pg_dump's handling of dependencies for custom opclasses.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add error codes to some corruption log messages