postgresql/src/bin/pg_upgrade
Bruce Momjian 244142d32a 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
2018-07-28 15:01:55 -04:00
..
po Translation updates 2018-05-21 12:29:52 -04:00
.gitignore Ignore file generated during pg_upgrade testing 2018-04-30 12:39:29 -04:00
IMPLEMENTATION Fix wording in pg_upgrade docs 2017-05-05 12:42:21 +02:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
TESTING Fix bit-rot in pg_upgrade's test.sh, and improve documentation. 2017-06-08 13:48:39 -04:00
check.c Improve two error messages 2018-07-12 12:35:59 +02:00
controldata.c pg_upgrade: check for clean server shutdowns 2018-07-28 15:01:55 -04:00
dump.c Ensure that all temp files made during pg_upgrade are non-world-readable. 2018-02-05 10:58:27 -05:00
exec.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
file.c Refactor dir/file permissions 2018-04-07 17:45:39 -04:00
function.c pg_upgrade: report database names with missing extension libs 2018-07-28 12:33:54 -04:00
info.c Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h. 2018-04-08 13:59:52 -04:00
nls.mk Translation updates 2018-05-21 12:29:52 -04:00
option.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
parallel.c pg_upgrade: prevent check on live cluster from generating error 2018-01-08 22:43:51 -05:00
pg_upgrade.c pg_upgrade: check for clean server shutdowns 2018-07-28 15:01:55 -04:00
pg_upgrade.h pg_upgrade: report database names with missing extension libs 2018-07-28 12:33:54 -04:00
relfilenode.c Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h. 2018-04-08 13:59:52 -04:00
server.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
tablespace.c Fix misc typos, mostly in comments. 2018-07-18 16:17:32 +03:00
test.sh Further portability hacking in pg_upgrade's test script. 2018-07-21 15:40:51 -04:00
util.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
version.c Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h. 2018-04-08 13:59:52 -04:00