Skip to content

Commit 921a0b2

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 1bd25c0 commit 921a0b2

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

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

0 commit comments

Comments
 (0)