summaryrefslogtreecommitdiff
path: root/src/bin/pg_upgrade/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_upgrade/check.c')
-rw-r--r--src/bin/pg_upgrade/check.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c
index ef091cb3e4c..f3afea9d561 100644
--- a/src/bin/pg_upgrade/check.c
+++ b/src/bin/pg_upgrade/check.c
@@ -10,7 +10,6 @@
#include "postgres_fe.h"
#include "catalog/pg_authid_d.h"
-#include "common/kmgr_utils.h"
#include "fe_utils/string_utils.h"
#include "mb/pg_wchar.h"
#include "pg_upgrade.h"
@@ -28,7 +27,6 @@ static void check_for_tables_with_oids(ClusterInfo *cluster);
static void check_for_reg_data_type_usage(ClusterInfo *cluster);
static void check_for_jsonb_9_4_usage(ClusterInfo *cluster);
static void check_for_pg_role_prefix(ClusterInfo *cluster);
-static void check_for_cluster_key_failure(ClusterInfo *cluster);
static void check_for_new_tablespace_dir(ClusterInfo *new_cluster);
static char *get_canonical_locale_name(int category, const char *locale);
@@ -141,9 +139,6 @@ check_and_dump_old_cluster(bool live_check)
if (GET_MAJOR_VERSION(old_cluster.major_version) <= 905)
check_for_pg_role_prefix(&old_cluster);
- if (GET_MAJOR_VERSION(old_cluster.major_version) >= 1400)
- check_for_cluster_key_failure(&old_cluster);
-
if (GET_MAJOR_VERSION(old_cluster.major_version) == 904 &&
old_cluster.controldata.cat_ver < JSONB_FORMAT_CHANGE_CAT_VER)
check_for_jsonb_9_4_usage(&old_cluster);
@@ -178,9 +173,6 @@ check_new_cluster(void)
check_loadable_libraries();
- if (GET_MAJOR_VERSION(old_cluster.major_version) >= 1400)
- check_for_cluster_key_failure(&new_cluster);
-
switch (user_opts.transfer_mode)
{
case TRANSFER_MODE_CLONE:
@@ -1278,32 +1270,6 @@ check_for_pg_role_prefix(ClusterInfo *cluster)
/*
- * check_for_cluster_key_failure()
- *
- * Make sure there was no unrepaired pg_alterckey failure
- */
-static void
-check_for_cluster_key_failure(ClusterInfo *cluster)
-{
- struct stat buffer;
-
- if (stat (KMGR_DIR_PID, &buffer) == 0)
- {
- if (cluster == &old_cluster)
- pg_fatal("The source cluster had a pg_alterckey failure that needs repair or\n"
- "pg_alterckey is running. Run pg_alterckey --repair or wait for it\n"
- "to complete.\n");
- else
- pg_fatal("The target cluster had a pg_alterckey failure that needs repair or\n"
- "pg_alterckey is running. Run pg_alterckey --repair or wait for it\n"
- "to complete.\n");
- }
-
- check_ok();
-}
-
-
-/*
* get_canonical_locale_name
*
* Send the locale name to the system, and hope we get back a canonical