From ec66f1adbf01a1961836c7af42de415b017f4416 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Fri, 18 Jul 2014 16:05:17 -0400 Subject: [PATCH] Limit pg_upgrade authentication advice to always-secure techniques. ~/.pgpass is a sound choice everywhere, and "peer" authentication is safe on every platform it supports. Cease to recommend "trust" authentication, the safety of which is deeply configuration-specific. Back-patch to 9.0, where pg_upgrade was introduced. --- doc/src/sgml/pgupgrade.sgml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml index ae9050bdc9..4efb34115f 100644 --- a/doc/src/sgml/pgupgrade.sgml +++ b/doc/src/sgml/pgupgrade.sgml @@ -235,11 +235,10 @@ gmake prefix=/usr/local/pgsql.new install Adjust authentication - pg_upgrade will connect to the old and new servers several times, - so you might want to set authentication to trust in - pg_hba.conf, or if using md5 authentication, - use a ~/.pgpass file (see ) - to avoid being prompted repeatedly for a password. + pg_upgrade will connect to the old and new servers several + times, so you might want to set local Unix-domain socket + authentication to ident in pg_hba.conf or use + a ~/.pgpass file (see ). @@ -338,8 +337,7 @@ pg_upgrade.exe Restore <filename>pg_hba.conf</> - If you modified pg_hba.conf to use trust, - restore its original authentication settings. + If you modified pg_hba.conf, restore its original settings. -- 2.50.0