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

Commit06b2f15

Browse files
committed
doc: Improve pg_upgrade rsync examples to use clusterdir
Commit9521ce4 from Sep 13, 2017 andbackpatched through 9.5 used rsync examples with datadir. The reporterhas pointed out, and testing has verified, that clusterdir must be used,so update the docs accordingly.Reported-by: Don SeilerDiscussion:https://postgr.es/m/CAHJZqBD0u9dCERpYzK6BkRv=663AmH==DFJpVC=M4Xg_rq2=CQ@mail.gmail.comBackpatch-through: 9.5
1 parent7201c68 commit06b2f15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ pg_upgrade.exe
494494
server:
495495

496496
<programlisting>
497-
rsync --archive --delete --hard-links --size-only --no-inc-recursiveold_pgdata new_pgdata remote_dir
497+
rsync --archive --delete --hard-links --size-only --no-inc-recursiveold_cluster new_cluster remote_dir
498498
</programlisting>
499499

500-
where <option>old_pgdata</> and <option>new_pgdata</> are relative
500+
where <option>old_cluster</> and <option>new_cluster</> are relative
501501
to the current directory on the primary, and <option>remote_dir</>
502502
is <emphasis>above</> the old and new cluster directories
503503
on the standby. The directory structure under the specified
@@ -506,8 +506,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive old_pgdata
506506
remote directory, e.g.
507507

508508
<programlisting>
509-
rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5/data \
510-
/opt/PostgreSQL/9.6/data standby.example.com:/opt/PostgreSQL
509+
rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5 \
510+
/opt/PostgreSQL/9.6 standby.example.com:/opt/PostgreSQL
511511
</programlisting>
512512

513513
You can verify what the command will do using

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp