pg_upgrade: issue helpful error message for use on standbys
authorBruce Momjian <bruce@momjian.us>
Fri, 17 Aug 2018 14:25:48 +0000 (10:25 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 17 Aug 2018 14:25:48 +0000 (10:25 -0400)
commitb94f7b5350e97ef0587c0c64aed6eb940d964c06
tree4c8a682ad8c99bd2c1b2f0da42697af6aa2dc195
parentee80124811908ef1d4679296c46e36bd8a32b9de
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
src/bin/pg_upgrade/controldata.c