]> granicus.if.org Git - postgresql/commitdiff
pg_upgrade: document possible pg_hba.conf options
authorBruce Momjian <bruce@momjian.us>
Thu, 11 Jul 2013 13:43:19 +0000 (09:43 -0400)
committerBruce Momjian <bruce@momjian.us>
Thu, 11 Jul 2013 13:43:19 +0000 (09:43 -0400)
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.

doc/src/sgml/pgupgrade.sgml

index f2d2d75af39c9ca41c2559b2abe2fea6b239514c..523fe440841a135931e8be6d45da11871b69a7e4 100644 (file)
@@ -288,10 +288,10 @@ gmake prefix=/usr/local/pgsql.new install
 
     <para>
      <command>pg_upgrade</> will connect to the old and new servers several times,
-     so you might want to set authentication to <literal>trust</> in
-     <filename>pg_hba.conf</>, or if using <literal>md5</> authentication,
-     use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">)
-     to avoid being prompted repeatedly for a password.
+     so you might want to set authentication to <literal>trust</>
+     or <literal>peer</> in <filename>pg_hba.conf</>, or if using
+     <literal>md5</> authentication, use a <filename>~/.pgpass</> file
+     (see <xref linkend="libpq-pgpass">).
     </para>
    </step>