}
}
pg_log(PG_FATAL, "Could not find %s.%s in %s cluster\n",
- nspname, relname, CLUSTERNAME(whichCluster));
+ nspname, relname, CLUSTER_NAME(whichCluster));
return NULL;
}
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;
}
{
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++)
{
#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)
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");
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, ".");
}