From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_upgrade: check for clean server shutdowns
Date: Sat, 28 Jul 2018 19:02:10 +0000
Message-ID: <E1fjUTi-0002dr-VY@gemulon.postgresql.org> (raw)
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
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9a13e7f0f0c932c06fb459f497be1d83b0916613
Modified Files
--------------
src/bin/pg_upgrade/controldata.c | 59 ++++++++++++++++++++++++++++++++++++++++
src/bin/pg_upgrade/pg_upgrade.c | 3 +-
2 files changed, 61 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: bruce@momjian.us
Subject: Re: pgsql: pg_upgrade: check for clean server shutdowns
In-Reply-To: <E1fjUTi-0002dr-VY@gemulon.postgresql.org>
References: <E1fjUTi-0002dr-VY@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox