Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb52fd1e

Browse files
committed
Use native path separators to pg_ctl in initdb
On Windows, CMD.EXE allegedly does not run a command that uses forward slashes,so let's convert the path to use backslashes instead.Backpatch to 10.Author: Nitin Jadhav <nitinjadhavpostgres@gmail.com>Reviewed-by: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>Discussion:https://postgr.es/m/CAMm1aWaNDuaPYFYMAqDeJrZmPtNvLcJRS++CcZWY8LT6KcoBZw@mail.gmail.com
1 parent621e8a6 commitb52fd1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,6 +3281,9 @@ main(int argc, char *argv[])
32813281
/* ... and tag on pg_ctl instead */
32823282
join_path_components(pg_ctl_path,pg_ctl_path,"pg_ctl");
32833283

3284+
/* Convert the path to use native separators */
3285+
make_native_path(pg_ctl_path);
3286+
32843287
/* path to pg_ctl, properly quoted */
32853288
appendShellString(start_db_cmd,pg_ctl_path);
32863289

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp