]> 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)
commit9a13e7f0f0c932c06fb459f497be1d83b0916613
tree9dc02a4e3015c8c9dd6b7c556235d4f18dc3f8fb
parentfe25526e9d5cd6418313c63e43d6780187a7d1b1
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