@@ -432,7 +432,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
432
432
#endif
433
433
434
434
/* delete old cluster's default tablespace */
435
- fprintf (script , RMDIR_CMD " %s \n" , fix_path_separator (ctx , ctx -> old .pgdata ));
435
+ fprintf (script , RMDIR_CMD " \"%s\" \n" , fix_path_separator (ctx , ctx -> old .pgdata ));
436
436
437
437
/* delete old cluster's alternate tablespaces */
438
438
for (tblnum = 0 ; tblnum < ctx -> num_tablespaces ; tblnum ++ )
@@ -456,7 +456,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
456
456
457
457
for (dbnum = 0 ; dbnum < ctx -> new .dbarr .ndbs ; dbnum ++ )
458
458
{
459
- fprintf (script , RMDIR_CMD " %s%s%c%d\n" ,
459
+ fprintf (script , RMDIR_CMD " \" %s%s%c%d\" \n" ,
460
460
fix_path_separator (ctx , ctx -> tablespaces [tblnum ]),
461
461
fix_path_separator (ctx , ctx -> old .tablespace_suffix ),
462
462
PATH_SEPARATOR , ctx -> old .dbarr .dbs [dbnum ].db_oid );
@@ -468,7 +468,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
468
468
* Simply delete the tablespace directory, which might be ".old"
469
469
* or a version-specific subdirectory.
470
470
*/
471
- fprintf (script , RMDIR_CMD " %s%s\n" ,
471
+ fprintf (script , RMDIR_CMD " \" %s%s\" \n" ,
472
472
fix_path_separator (ctx , ctx -> tablespaces [tblnum ]),
473
473
fix_path_separator (ctx , ctx -> old .tablespace_suffix ));
474
474
}
0 commit comments