pg_upgrade: fix shutdown check for standby servers
authorBruce Momjian
Tue, 14 Aug 2018 21:19:02 +0000 (17:19 -0400)
committerBruce Momjian
Tue, 14 Aug 2018 21:19:02 +0000 (17:19 -0400)
commit995133410de7c0f3670022d0d7d982f6e8f81bc0
tree31686e16fca74c525219cf872742bd7c7df8a48a
parentc6eedb4d86dfdf5cf526af4df696e73dc8a5c275
pg_upgrade:  fix shutdown check for standby servers

Commit 244142d32afd02e7408a2ef1f249b00393983822 only tested for the
pg_controldata output for primary servers, but standby servers have
different "Database cluster state" output, so check for that too.

Diagnosed-by: Michael Paquier
Discussion: https://postgr.es/m/20180810164240[email protected]

Backpatch-through: 9.3
src/bin/pg_upgrade/controldata.c