Turn password_encryption GUC into an enum.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 Sep 2016 09:22:44 +0000 (12:22 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 Sep 2016 09:22:44 +0000 (12:22 +0300)
commitbabe05bc2b781eb3eb84a18d7010d08277e2e399
tree4d692b0ef2fa74186aafc97d4d46748ea63aff07
parent72daabc7a3e75788df862104b8f723513c2471ae
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@mail.gmail.com>
doc/src/sgml/config.sgml
src/backend/commands/user.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/commands/user.h