diff --git a/contrib/pg_upgrade/controldata.c b/contrib/pg_upgrade/controldata.c index a480e3c7da1..e3386f81019 100644 --- a/contrib/pg_upgrade/controldata.c +++ b/contrib/pg_upgrade/controldata.c @@ -148,7 +148,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_log(PG_FATAL, "The source cluster was not shut down cleanly.\n");