diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml new file mode 100644 index e1cd260..4e4fe64 *** a/doc/src/sgml/pgupgrade.sgml --- b/doc/src/sgml/pgupgrade.sgml *************** pg_upgrade.exe *** 409,414 **** --- 409,486 ---- + Upgrade any Log-Shipping Standby Servers + + + If you have Log-Shipping Standby Servers (), follow these steps to upgrade them (before + starting any servers): + + + + + + Install the new PostgreSQL binaries on standby servers + + + Make sure the new binaries and support files are installed + on all the standby servers. Do not run + initdb. If initdb was run, delete + the standby server data directories. Also, install any custom + shared object files on the new standbys that you installed in the + new master cluster. + + + + + Run <application>rsync</> + + + From a directory that is above the old and new database cluster + directories, run this for each slave: + + + rsync --archive --hard-links --size-only old_dir new_dir remote_dir + + + where + + + + Configure log-shipping to standby servers + + + Configure the servers for log shipping. (You do not need to run + pg_start_backup() and pg_stop_backup() + or take a file system backup as the slaves are still sychronized + with the master.) + + + + + + + + + Start the new server + + + The new server and any rsync'ed standby servers can + now be safely started. + + + + Post-Upgrade processing *************** psql --username postgres --file script.s *** 548,562 **** - A Log-Shipping Standby Server () cannot - be upgraded because the server must allow writes. The simplest way - is to upgrade the primary and use rsync to rebuild the - standbys. You can run rsync while the primary is down, - or as part of a base backup () - which overwrites the old standby cluster. - - - If you want to use link mode and you do not want your old cluster to be modified when the new cluster is started, make a copy of the old cluster and upgrade that in link mode. To make a valid copy --- 620,625 ----