Skip to content

Commit 02e61a8

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 583435d commit 02e61a8

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
@@ -288,10 +288,10 @@ gmake prefix=/usr/local/pgsql.new install
288288

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

0 commit comments

Comments
 (0)