doc: Improve pg_upgrade rsync examples to use clusterdir
authorBruce Momjian
Wed, 31 Jan 2018 21:43:32 +0000 (16:43 -0500)
committerBruce Momjian
Wed, 31 Jan 2018 21:43:40 +0000 (16:43 -0500)
Commit 9521ce4a7a1125385fb4de9689f345db594c516a from Sep 13, 2017 and
backpatched through 9.5 used rsync examples with datadir.  The reporter
has pointed out, and testing has verified, that clusterdir must be used,
so update the docs accordingly.

Reported-by: Don Seiler
Discussion: https://postgr.es/m/CAHJZqBD0u9dCERpYzK6BkRv=663AmH==DFJpVC=M4Xg_rq2=CQ@mail.gmail.com

Backpatch-through: 9.5

doc/src/sgml/ref/pgupgrade.sgml

index ffa400ad849ff4d30b655a2b32cfd167fa239756..0f8f6af98b8e367c30cd4a1ef55b35456ae29871 100644 (file)
@@ -494,10 +494,10 @@ pg_upgrade.exe
        server:
 
 
-rsync --archive --delete --hard-links --size-only --no-inc-recursive old_pgdata new_pgdata remote_dir
+rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster new_cluster remote_dir
 
 
-       where  and  are relative
+       where  and  are relative
        to the current directory on the primary, and 
        is above the old and new cluster directories
        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
        remote directory, e.g.
 
 
-rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5/data \
-      /opt/PostgreSQL/9.6/data standby.example.com:/opt/PostgreSQL
+rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5 \
+      /opt/PostgreSQL/9.6 standby.example.com:/opt/PostgreSQL
 
 
        You can verify what the command will do using