summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2022-05-31 19:59:47 +0000
committerMagnus Hagander2022-05-31 19:59:47 +0000
commite1ed1a7aa5477a52faad2699c881966fb73128cb (patch)
tree912eac863de3aa4fcc47209bbb4dfbbe35c0c7f3
parente28bb885196916b0a3d898ae4f2be0e38108d81b (diff)
Recommend scram-sha-256 instead of md5 authentication in docs
PostgreSQL 14 changed the default to be scram-sha-256, so we should stop recommending the user to use md5 or even worse password. Suggested-By: Daniel Westermann Author: Jonathan S. Katz Backpatch-through: 14 Discussion: https://postgr.es/m/GV0P278MB0419A8BAC0B0B84AFA5263D9D2DC9@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM
-rw-r--r--doc/src/sgml/runtime.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 5d98843c88..2352389ab6 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -199,8 +199,8 @@ postgres$ <userinput>initdb -D /usr/local/pgsql/data</userinput>
<primary>password</primary>
<secondary>of the superuser</secondary>
</indexterm>
- Also, specify <option>-A md5</option> or
- <option>-A password</option> so that the default <literal>trust</literal> authentication
+ Also, specify <option>-A scram-sha-256</option>
+ so that the default <literal>trust</literal> authentication
mode is not used; or modify the generated <filename>pg_hba.conf</filename>
file after running <command>initdb</command>, but
<emphasis>before</emphasis> you start the server for the first time. (Other