]> granicus.if.org Git - postgresql/commit
pg_upgrade: check for clean server shutdowns
authorBruce Momjian <bruce@momjian.us>
Sat, 28 Jul 2018 19:01:55 +0000 (15:01 -0400)
committerBruce Momjian <bruce@momjian.us>
Sat, 28 Jul 2018 19:01:55 +0000 (15:01 -0400)
commit113224848aa010ce03431c76198bfdac871e8a0e
tree1848539cdda8b9c26ea84ccf54ed048f0e59c0d1
parentf0aff14d43394c669747af244e3c47fb8020cc77
pg_upgrade:  check for clean server shutdowns

Previously pg_upgrade checked for the pid file and started/stopped the
server to force a clean shutdown.  However, "pg_ctl -m immediate"
removes the pid file but doesn't do a clean shutdown, so check
pg_controldata for a clean shutdown too.

Diagnosed-by: Vimalraj A
Discussion: https://postgr.es/m/CAFKBAK5e4Q-oTUuPPJ56EU_d2Rzodq6GWKS3ncAk3xo7hAsOZg@mail.gmail.com

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