pgsql: pg_upgrade: check for clean server shutdowns - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: pg_upgrade: check for clean server shutdowns
Date
Msg-id E1fjUTi-0002dn-Uk@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/244142d32afd02e7408a2ef1f249b00393983822

Modified Files
--------------
src/bin/pg_upgrade/controldata.c | 59 ++++++++++++++++++++++++++++++++++++++++
src/bin/pg_upgrade/pg_upgrade.c  |  3 +-
2 files changed, 61 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: pg_upgrade: report database names with missing extension libs
Next
From: Bruce Momjian
Date:
Subject: pgsql: pgtest: run clean, build, and check stages separately