diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml new file mode 100644 index f8d9630..60011d8 *** a/doc/src/sgml/ref/pgupgrade.sgml --- b/doc/src/sgml/ref/pgupgrade.sgml *************** pg_upgrade.exe *** 421,432 **** Upgrade Streaming Replication and Log-Shipping standby servers ! If you have Streaming Replication (see ) or Log-Shipping (see ) standby servers, follow these steps to ! upgrade them. You will not be running pg_upgrade ! on the standby servers, but rather rsync on the ! primary. Do not start any servers yet. --- 421,434 ---- Upgrade Streaming Replication and Log-Shipping standby servers ! If you used link mode and have Streaming Replication (see ) or Log-Shipping (see ) standby servers, follow these steps to ! upgrade them. You will not be running pg_upgrade on ! the standby servers, but rather rsync on the primary. ! Do not start any servers yet. If you did not use link ! mode, skip the instructions in this section and simply recreate the ! standby servers. *************** pg_upgrade.exe *** 482,490 **** Run <application>rsync</> ! From a directory on the primary server that is above the old and ! new database cluster directories, run this on the ! primary for each standby server: rsync --archive --delete --hard-links --size-only old_pgdata new_pgdata remote_dir --- 484,494 ---- Run <application>rsync</> ! When using link mode, standby servers can be quickly upgraded using ! rsync. To accomplish this, from a directory on ! the primary server that is above the old and new database cluster ! directories, run this on the primary for each standby ! server: rsync --archive --delete --hard-links --size-only old_pgdata new_pgdata remote_dir *************** rsync --archive --delete --hard-links -- *** 492,521 **** where ! What rsync does is to copy files from the ! primary to the standby, and, if pg_upgrade's ! If you have tablespaces, you will need to run a similar ! rsync command for each tablespace directory. If you ! have relocated pg_wal outside the data directories, ! rsync must be run on those directories too. --- 496,539 ---- where ! What this does is to record the links created by ! pg_upgrade's link mode that connect files in the ! old and new clusters on the primary server. It then finds matching ! files in the standby's old cluster and creates links for them in the ! standby's new cluster. Files that were not linked on the primary ! are copied from the primary to the standby. (They are usually ! small.) This provides rapid standby upgrades. Unfortunately, ! rsync needlessly copies files associated with ! temporary and unlogged tables because these files don't normally ! exist on standby servers. If you have tablespaces, you will need to run a similar ! rsync command for each tablespace directory, e.g.: ! ! ! rsync --archive --delete --hard-links --size-only /vol1/pg_tblsp/PG_9.5_201510051 \ ! /vol1/pg_tblsp/PG_9.6_201608131 standby.example.com:/vol1/pg_tblsp ! ! ! If you have relocated pg_wal outside the data ! directories, rsync must be run on those directories ! too.