Skip to content

Commit 886c05d

Browse files
committed
pg_upgrade: document possible pg_hba.conf options
Previously, pg_upgrade docs recommended using .pgpass if using MD5 authentication to avoid being prompted for a password. Turns out pg_ctl never prompts for a password, so MD5 requires .pgpass --- document that. Also recommend 'peer' for authentication too. Backpatch back to 9.1.
1 parent f02b14f commit 886c05d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/pgupgrade.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ gmake prefix=/usr/local/pgsql.new install
287287

288288
<para>
289289
<command>pg_upgrade</> will connect to the old and new servers several times,
290-
so you might want to set authentication to <literal>trust</> in
291-
<filename>pg_hba.conf</>, or if using <literal>md5</> authentication,
292-
use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">)
293-
to avoid being prompted repeatedly for a password.
290+
so you might want to set authentication to <literal>trust</>
291+
or <literal>peer</> in <filename>pg_hba.conf</>, or if using
292+
<literal>md5</> authentication, use a <filename>~/.pgpass</> file
293+
(see <xref linkend="libpq-pgpass">).
294294
</para>
295295
</step>
296296

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