summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2018-01-31 16:43:32 -0500
committerBruce Momjian <bruce@momjian.us>2018-01-31 16:43:38 -0500
commit0ae0f0777bf181df42368464600059d62b3a4e4d (patch)
tree8ad91e3f8ed3ed2fd5c82063cde019ca6e87039f /doc/src
parent1787c332dbb7629b893e52afcf37076ebe4db9a3 (diff)
doc: Improve pg_upgrade rsync examples to use clusterdir
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/pgupgrade.sgml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml
index ba3cc133cbe..841d97c3ec9 100644
--- a/doc/src/sgml/ref/pgupgrade.sgml
+++ b/doc/src/sgml/ref/pgupgrade.sgml
@@ -494,10 +494,10 @@ pg_upgrade.exe
server:
<programlisting>
-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
</programlisting>
- where <option>old_pgdata</> and <option>new_pgdata</> are relative
+ where <option>old_cluster</> and <option>new_cluster</> are relative
to the current directory on the primary, and <option>remote_dir</>
is <emphasis>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.
<programlisting>
-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
</programlisting>
You can verify what the command will do using