Skip to content

Commit 7b55a98

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 5ef588b commit 7b55a98

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

doc/src/sgml/pgupgrade.sgml

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy