summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2011-01-01 01:42:29 +0000
committerBruce Momjian2011-01-01 01:42:29 +0000
commitf82b3e58f8876c330927b0e6562936c184a7bc6f (patch)
tree16fa8f274c18620bfcf9e4b6af672ccbfbb62e6e
parent30aeda439456d14e713a5693461bcd62035f1d9d (diff)
In pg_upgrade, rename "CLUSTERNAME" to "CLUSTER_NAME".
-rw-r--r--contrib/pg_upgrade/info.c6
-rw-r--r--contrib/pg_upgrade/pg_upgrade.h2
-rw-r--r--contrib/pg_upgrade/server.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/contrib/pg_upgrade/info.c b/contrib/pg_upgrade/info.c
index 5141602ada..99a1548a58 100644
--- a/contrib/pg_upgrade/info.c
+++ b/contrib/pg_upgrade/info.c
@@ -441,7 +441,7 @@ relarr_lookup_rel(RelInfoArr *rel_arr, const char *nspname,
}
}
pg_log(PG_FATAL, "Could not find %s.%s in %s cluster\n",
- nspname, relname, CLUSTERNAME(whichCluster));
+ nspname, relname, CLUSTER_NAME(whichCluster));
return NULL;
}
@@ -465,7 +465,7 @@ relarr_lookup_reloid(RelInfoArr *rel_arr, Oid oid,
return &rel_arr->rels[relnum];
}
pg_log(PG_FATAL, "Could not find %d in %s cluster\n",
- oid, CLUSTERNAME(whichCluster));
+ oid, CLUSTER_NAME(whichCluster));
return NULL;
}
@@ -495,7 +495,7 @@ dbarr_print(DbInfoArr *arr, Cluster whichCluster)
{
int dbnum;
- pg_log(PG_DEBUG, "%s databases\n", CLUSTERNAME(whichCluster));
+ pg_log(PG_DEBUG, "%s databases\n", CLUSTER_NAME(whichCluster));
for (dbnum = 0; dbnum < arr->ndbs; dbnum++)
{
diff --git a/contrib/pg_upgrade/pg_upgrade.h b/contrib/pg_upgrade/pg_upgrade.h
index 439c0a7425..c53f935a78 100644
--- a/contrib/pg_upgrade/pg_upgrade.h
+++ b/contrib/pg_upgrade/pg_upgrade.h
@@ -52,7 +52,7 @@
#define EXE_EXT ".exe"
#endif
-#define CLUSTERNAME(cluster) ((cluster) == CLUSTER_OLD ? "old" : "new")
+#define CLUSTER_NAME(cluster) ((cluster) == CLUSTER_OLD ? "old" : "new")
#define ACTIVE_CLUSTER(cluster) (((cluster) == CLUSTER_OLD) ? \
&old_cluster : &new_cluster)
diff --git a/contrib/pg_upgrade/server.c b/contrib/pg_upgrade/server.c
index 3f6cb641e7..127f9c4fc0 100644
--- a/contrib/pg_upgrade/server.c
+++ b/contrib/pg_upgrade/server.c
@@ -195,7 +195,7 @@ start_postmaster(Cluster whichCluster, bool quiet)
if (test_server_conn(POSTMASTER_UPTIME, whichCluster) == false)
pg_log(PG_FATAL, " Unable to start %s postmaster with the command: %s\nPerhaps pg_hba.conf was not set to \"trust\".",
- CLUSTERNAME(whichCluster), cmd);
+ CLUSTER_NAME(whichCluster), cmd);
if ((os_info.postmasterPID = get_postmaster_pid(datadir)) == 0)
pg_log(PG_FATAL, " Unable to get postmaster pid\n");
@@ -275,7 +275,7 @@ test_server_conn(int timeout, Cluster whichCluster)
if (tries == STARTUP_WARNING_TRIES)
prep_status("Trying to start %s server ",
- CLUSTERNAME(whichCluster));
+ CLUSTER_NAME(whichCluster));
else if (tries > STARTUP_WARNING_TRIES)
pg_log(PG_REPORT, ".");
}