pg_upgrade: Add SYSTEMQUOTE for Windows paths with spaces
Another fix for commit 244142d32afd02e7408a2ef1f249b00393983822. We added SYSTEMQUOTE to the win32 popen() compatibility function in PG 9.4. Backpatch-through: 9.3 only
This commit is contained in:
parent
a1d383ab57
commit
dfc71a1b25
@ -117,7 +117,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
|
||||
if (!live_check || cluster == &new_cluster)
|
||||
{
|
||||
/* only pg_controldata outputs the cluster state */
|
||||
snprintf(cmd, sizeof(cmd), "\"%s/pg_controldata\" \"%s\"",
|
||||
snprintf(cmd, sizeof(cmd), SYSTEMQUOTE "\"%s/pg_controldata\" \"%s\"" SYSTEMQUOTE,
|
||||
cluster->bindir, cluster->pgdata);
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user