aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/initdb/initdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index eb75a72793a..291078a1756 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -3281,6 +3281,9 @@ main(int argc, char *argv[])
/* ... and tag on pg_ctl instead */
join_path_components(pg_ctl_path, pg_ctl_path, "pg_ctl");
+ /* Convert the path to use native separators */
+ make_native_path(pg_ctl_path);
+
/* path to pg_ctl, properly quoted */
appendShellString(start_db_cmd, pg_ctl_path);