mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
pg_upgrade: Add SYSTEMQUOTE for Windows paths with spaces
Another fix for commit 244142d32a
. We
added SYSTEMQUOTE to the win32 popen() compatibility function in PG 9.4.
Backpatch-through: 9.3 only
This commit is contained in:
@ -117,7 +117,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
|
|||||||
if (!live_check || cluster == &new_cluster)
|
if (!live_check || cluster == &new_cluster)
|
||||||
{
|
{
|
||||||
/* only pg_controldata outputs the cluster state */
|
/* 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);
|
cluster->bindir, cluster->pgdata);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
Reference in New Issue
Block a user