Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 85f9573

Browse files
committed
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.
1 parent 1567e65 commit 85f9573

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

doc/src/sgml/pgupgrade.sgml

+6-8
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,9 @@ make prefix=/usr/local/pgsql.new install
288288
<title>Adjust authentication</title>
289289

290290
<para>
291-
<command>pg_upgrade</> will connect to the old and new servers several times,
292-
so you might want to set authentication to <literal>trust</>
293-
or <literal>peer</> in <filename>pg_hba.conf</>, or if using
294-
<literal>md5</> authentication, use a <filename>~/.pgpass</> file
291+
<command>pg_upgrade</> will connect to the old and new servers several
292+
times, so you might want to set authentication to <literal>peer</>
293+
in <filename>pg_hba.conf</> or use a <filename>~/.pgpass</> file
295294
(see <xref linkend="libpq-pgpass">).
296295
</para>
297296
</step>
@@ -406,10 +405,9 @@ pg_upgrade.exe
406405
<title>Restore <filename>pg_hba.conf</></title>
407406

408407
<para>
409-
If you modified <filename>pg_hba.conf</> to use <literal>trust</>,
410-
restore its original authentication settings. It might also be
411-
necessary to adjust other configurations files in the new cluster to
412-
match the old cluster, e.g. <filename>postgresql.conf</>.
408+
If you modified <filename>pg_hba.conf</>, restore its original settings.
409+
It might also be necessary to adjust other configuration files in the new
410+
cluster to match the old cluster, e.g. <filename>postgresql.conf</>.
413411
</para>
414412
</step>
415413

0 commit comments

Comments
 (0)