diff options
| author | Noah Misch | 2014-07-18 20:05:17 +0000 |
|---|---|---|
| committer | Noah Misch | 2014-07-18 20:06:11 +0000 |
| commit | ec66f1adbf01a1961836c7af42de415b017f4416 (patch) | |
| tree | 737bb47ee2758be20adcf7d8d67eb8ff7fcc8699 | |
| parent | b8c24f7ab8f50efd0b55f39cb10d4df7df9ff94b (diff) | |
Limit pg_upgrade authentication advice to always-secure techniques.
~/.pgpass is a sound choice everywhere, and "peer" authentication is
safe on every platform it supports. Cease to recommend "trust"
authentication, the safety of which is deeply configuration-specific.
Back-patch to 9.0, where pg_upgrade was introduced.
| -rw-r--r-- | doc/src/sgml/pgupgrade.sgml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml index ae9050bdc9a..4efb34115f4 100644 --- a/doc/src/sgml/pgupgrade.sgml +++ b/doc/src/sgml/pgupgrade.sgml @@ -235,11 +235,10 @@ gmake prefix=/usr/local/pgsql.new install <title>Adjust authentication</title> <para> - <command>pg_upgrade</> will connect to the old and new servers several times, - so you might want to set authentication to <literal>trust</> in - <filename>pg_hba.conf</>, or if using <literal>md5</> authentication, - use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">) - to avoid being prompted repeatedly for a password. + <command>pg_upgrade</> will connect to the old and new servers several + times, so you might want to set <literal>local</> Unix-domain socket + authentication to <literal>ident</> in <filename>pg_hba.conf</> or use + a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">). </para> </step> @@ -338,8 +337,7 @@ pg_upgrade.exe <title>Restore <filename>pg_hba.conf</></title> <para> - If you modified <filename>pg_hba.conf</> to use <literal>trust</>, - restore its original authentication settings. + If you modified <filename>pg_hba.conf</>, restore its original settings. </para> </step> |
