Skip to content

Commit ad4c625

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 271f7b0 commit ad4c625

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

254254
<para>
255255
<command>pg_upgrade</> will connect to the old and new servers several times,
256-
so you might want to set authentication to <literal>trust</> in
257-
<filename>pg_hba.conf</>, or if using <literal>md5</> authentication,
258-
use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">)
259-
to avoid being prompted repeatedly for a password.
256+
so you might want to set authentication to <literal>trust</>
257+
or <literal>peer</> in <filename>pg_hba.conf</>, or if using
258+
<literal>md5</> authentication, use a <filename>~/.pgpass</> file
259+
(see <xref linkend="libpq-pgpass">).
260260
</para>
261261
</step>
262262

0 commit comments

Comments
 (0)