pg_upgrade: issue helpful error message for use on standbys

Bruce Momjian <bruce@momjian.us>

Commit: a49cf6ef3d0c0e90b0c69d34c829488d3fbe7638
Author: Bruce Momjian <bruce@momjian.us>
Date: 2018-08-17T14:25:48Z
Releases: 9.3.25
pg_upgrade:  issue helpful error message for use on standbys

Commit 777e6ddf1723306bd2bf8fe6f804863f459b0323 checked for a shut down
message from a standby and allowed it to continue.  This patch reports a
helpful error message in these cases, suggesting to use rsync as
documented.

Diagnosed-by: Martín Marqués

Discussion: https://postgr.es/m/CAPdiE1xYCow-reLjrhJ9DqrMu-ppNq0ChUUEvVdxhdjGRD5_eA@mail.gmail.com

Backpatch-through: 9.3

Files

PathChange+/−
contrib/pg_upgrade/controldata.c modified +8 −2