Skip to content

Commit 3f09bb8

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 8a81778 commit 3f09bb8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/src/sgml/pgupgrade.sgml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,9 @@ gmake prefix=/usr/local/pgsql.new install
252252
<title>Adjust authentication</title>
253253

254254
<para>
255-
<command>pg_upgrade</> will connect to the old and new servers several times,
256-
so you might want to set authentication to <literal>trust</>
257-
or <literal>peer</> in <filename>pg_hba.conf</>, or if using
258-
<literal>md5</> authentication, use a <filename>~/.pgpass</> file
255+
<command>pg_upgrade</> will connect to the old and new servers several
256+
times, so you might want to set authentication to <literal>peer</>
257+
in <filename>pg_hba.conf</> or use a <filename>~/.pgpass</> file
259258
(see <xref linkend="libpq-pgpass">).
260259
</para>
261260
</step>
@@ -355,8 +354,7 @@ pg_upgrade.exe
355354
<title>Restore <filename>pg_hba.conf</></title>
356355

357356
<para>
358-
If you modified <filename>pg_hba.conf</> to use <literal>trust</>,
359-
restore its original authentication settings.
357+
If you modified <filename>pg_hba.conf</>, restore its original settings.
360358
</para>
361359
</step>
362360

0 commit comments

Comments
 (0)