Skip to content

Commit ec66f1a

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 b8c24f7 commit ec66f1a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

doc/src/sgml/pgupgrade.sgml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,10 @@ gmake prefix=/usr/local/pgsql.new install
235235
<title>Adjust authentication</title>
236236

237237
<para>
238-
<command>pg_upgrade</> will connect to the old and new servers several times,
239-
so you might want to set authentication to <literal>trust</> in
240-
<filename>pg_hba.conf</>, or if using <literal>md5</> authentication,
241-
use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">)
242-
to avoid being prompted repeatedly for a password.
238+
<command>pg_upgrade</> will connect to the old and new servers several
239+
times, so you might want to set <literal>local</> Unix-domain socket
240+
authentication to <literal>ident</> in <filename>pg_hba.conf</> or use
241+
a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">).
243242
</para>
244243
</step>
245244

@@ -338,8 +337,7 @@ pg_upgrade.exe
338337
<title>Restore <filename>pg_hba.conf</></title>
339338

340339
<para>
341-
If you modified <filename>pg_hba.conf</> to use <literal>trust</>,
342-
restore its original authentication settings.
340+
If you modified <filename>pg_hba.conf</>, restore its original settings.
343341
</para>
344342
</step>
345343

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