Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b55a98

Browse files
committed
Limit pg_upgrade authentication advice to always-secure techniques.
~/.pgpass is a sound choice everywhere, and "peer" authentication issafe 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.
1 parent5ef588b commit7b55a98

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎doc/src/sgml/pgupgrade.sgml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,9 @@ gmake prefix=/usr/local/pgsql.new install
289289
<title>Adjust authentication</title>
290290

291291
<para>
292-
<command>pg_upgrade</> will connect to the old and new servers several times,
293-
so you might want to set authentication to <literal>trust</>
294-
or <literal>peer</> in <filename>pg_hba.conf</>, or if using
295-
<literal>md5</> authentication, use a <filename>~/.pgpass</> file
292+
<command>pg_upgrade</> will connect to the old and new servers several
293+
times, so you might want to set authentication to <literal>peer</>
294+
in <filename>pg_hba.conf</> or use a <filename>~/.pgpass</> file
296295
(see <xref linkend="libpq-pgpass">).
297296
</para>
298297
</step>
@@ -407,10 +406,9 @@ pg_upgrade.exe
407406
<title>Restore <filename>pg_hba.conf</></title>
408407

409408
<para>
410-
If you modified <filename>pg_hba.conf</> to use <literal>trust</>,
411-
restore its original authentication settings. It might also be
412-
necessary to adjust other configurations files in the new cluster to
413-
match the old cluster, e.g. <filename>postgresql.conf</>.
409+
If you modified <filename>pg_hba.conf</>, restore its original settings.
410+
It might also be necessary to adjust other configuration files in the new
411+
cluster to match the old cluster, e.g. <filename>postgresql.conf</>.
414412
</para>
415413
</step>
416414

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp