1
0
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:
Bruce Momjian
2018-07-31 19:06:32 -04:00
parent a1d383ab57
commit dfc71a1b25

View File

@ -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);