Backpatch-through: 9.4 (9.3 didn't need improving)
pg_log(PG_VERBOSE, "%s\n", cmd);
#ifdef WIN32
-
/*
* For some reason, Windows issues a file-in-use error if we write data to
* the log file from a non-primary thread just before we create a
}
#ifndef WIN32
-
/*
* We can't do this on Windows because it will keep the "pg_ctl start"
* output filename open until the server stops, so we do the \n\n above on
* running.
*/
if (!pg_ctl_return)
- {
- if (cluster == &old_cluster)
- pg_fatal("pg_ctl failed to start the source server, or connection failed\n");
- else
- pg_fatal("pg_ctl failed to start the target server, or connection failed\n");
- }
+ pg_fatal("pg_ctl failed to start the %s server, or connection failed\n",
+ cluster == &old_cluster ? "source" : "target");
return true;
}