pgsql: Turn password_encryption GUC into an enum.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Turn password_encryption GUC into an enum.
Date: 2016-09-28 09:25:37
Message-ID: E1bpB7R-00020t-5s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Turn password_encryption GUC into an enum.

This makes the parameter easier to extend, to support other password-based
authentication protocols than MD5. (SCRAM is being worked on.)

The GUC still accepts on/off as aliases for "md5" and "plain", although
we may want to remove those once we actually add support for another
password hash type.

Michael Paquier, reviewed by David Steele, with some further edits by me.

Discussion: <CAB7nPqSMXU35g=W9X74HVeQp0uvgJxvYOuA4A-A3M+0wfEBv-w(at)mail(dot)gmail(dot)com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/babe05bc2b781eb3eb84a18d7010d08277e2e399

Modified Files
--------------
doc/src/sgml/config.sgml | 17 ++++++-----
src/backend/commands/user.c | 18 +++++------
src/backend/utils/misc/guc.c | 44 +++++++++++++++++++--------
src/backend/utils/misc/postgresql.conf.sample | 2 +-
src/include/commands/user.h | 15 +++++++--
5 files changed, 62 insertions(+), 34 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-09-28 15:27:34 pgsql: Fix dangling pointer problem in ReorderBufferSerializeChange.
Previous Message Michael Paquier 2016-09-28 04:44:44 Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control