aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2014-07-18 16:05:17 -0400
committerNoah Misch <noah@leadboat.com>2014-07-18 16:05:30 -0400
commit7b55a983e2390c5d4a98bd48b9ddf4565e9f24fd (patch)
tree57064662dd1eab5281891c3d2bfc20f0a5c156df
parent5ef588b22bbc3766c1c77c283579a6b732188524 (diff)
downloadpostgresql-7b55a983e2390c5d4a98bd48b9ddf4565e9f24fd.tar.gz
postgresql-7b55a983e2390c5d4a98bd48b9ddf4565e9f24fd.zip
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.sgml14
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml
index e38470a739f..fadb9799522 100644
--- a/doc/src/sgml/pgupgrade.sgml
+++ b/doc/src/sgml/pgupgrade.sgml
@@ -289,10 +289,9 @@ 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</>
- or <literal>peer</> in <filename>pg_hba.conf</>, or if using
- <literal>md5</> authentication, use a <filename>~/.pgpass</> file
+ <command>pg_upgrade</> will connect to the old and new servers several
+ times, so you might want to set authentication to <literal>peer</>
+ in <filename>pg_hba.conf</> or use a <filename>~/.pgpass</> file
(see <xref linkend="libpq-pgpass">).
</para>
</step>
@@ -407,10 +406,9 @@ 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. It might also be
- necessary to adjust other configurations files in the new cluster to
- match the old cluster, e.g. <filename>postgresql.conf</>.
+ If you modified <filename>pg_hba.conf</>, restore its original settings.
+ It might also be necessary to adjust other configuration files in the new
+ cluster to match the old cluster, e.g. <filename>postgresql.conf</>.
</para>
</step>