From: Michael Paquier <michael@paquier.xyz>
To: Bruce Momjian <bruce@momjian.us>
Cc: DEGLAVE Remi <remi.deglave@lyreco.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: [PG_UPGRADE] 9.6 to 10.5
Date: Fri, 10 Aug 2018 19:23:29 +0200
Message-ID: <20180810172329.GA22736@paquier.xyz> (raw)
In-Reply-To: <20180810165347.GB7815@momjian.us>
References: <AM6PR02MB3782E6A52BDA2A806B6A587AFE240@AM6PR02MB3782.eurprd02.prod.outlook.com>
<20180810161245.GA7815@momjian.us>
<20180810164240.GM13638@paquier.xyz>
<20180810165347.GB7815@momjian.us>
On Fri, Aug 10, 2018 at 12:53:47PM -0400, Bruce Momjian wrote:
> Oh, good point. I had not tested that. I can develop a patch to handle
> this. Was that the case in this upgrade report?
I cannot say if this is the issue reported here for sure, but the OP has
mentioned "clusters", which may point to the fact that he is trying to
upgrade standby(s) as well.
You need visibly a one-liner like that:
inline patch 1: src/bin/pg_upgrade/controldata.c (+2/-1 lines) download inline-1.patch--- a/src/bin/pg_upgrade/controldata.c+++ b/src/bin/pg_upgrade/controldata.c@@ -150,7 +150,8 @@ get_control_data(ClusterInfo *cluster, bool live_check)
/* remove leading spaces */
while (*p == ' ')
p++;
- if (strcmp(p, "shut down\n") != 0)+ if (strcmp(p, "shut down\n") != 0 &&+ strcmp(p, "shut down in recovery\n") != 0)
{
if (cluster == &old_cluster)
pg_fatal("The source cluster was not shut down cleanly.\n");
I have not tested it though.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-bugs@postgresql.org
Cc: michael@paquier.xyz, bruce@momjian.us, remi.deglave@lyreco.com
Subject: Re: [PG_UPGRADE] 9.6 to 10.5
In-Reply-To: <20180810172329.GA22736@paquier.xyz>
References: <AM6PR02MB3782E6A52BDA2A806B6A587AFE240@AM6PR02MB3782.eurprd02.prod.outlook.com> <20180810161245.GA7815@momjian.us> <20180810164240.GM13638@paquier.xyz> <20180810165347.GB7815@momjian.us> <20180810172329.GA22736@paquier.xyz>
* 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