]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_upgrade: fix shutdown check for standby servers
authorBruce Momjian <bruce@momjian.us>
Tue, 14 Aug 2018 21:19:02 +0000 (17:19 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 14 Aug 2018 21:19:02 +0000 (17:19 -0400)
commitefc4b489786d4e035eebab4b4c3faf3d6963986e
treef0f4496ebfdbbb2e1e6a9afa499bfce60b2b7f10
parent6c206de559d40641dc0357fdae2003bfc7b015ad
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.GM13638@paquier.xyz

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