Commit 886c05d8 authored by Bruce Momjian's avatar Bruce Momjian

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.
parent f02b14f7
...@@ -287,10 +287,10 @@ gmake prefix=/usr/local/pgsql.new install ...@@ -287,10 +287,10 @@ gmake prefix=/usr/local/pgsql.new install
<para> <para>
<command>pg_upgrade</> will connect to the old and new servers several times, <command>pg_upgrade</> will connect to the old and new servers several times,
so you might want to set authentication to <literal>trust</> in so you might want to set authentication to <literal>trust</>
<filename>pg_hba.conf</>, or if using <literal>md5</> authentication, or <literal>peer</> in <filename>pg_hba.conf</>, or if using
use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">) <literal>md5</> authentication, use a <filename>~/.pgpass</> file
to avoid being prompted repeatedly for a password. (see <xref linkend="libpq-pgpass">).
</para> </para>
</step> </step>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment