Use native path separators to pg_ctl in initdb

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: f927767919e8d7079043d637d2177b554126ad6c
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-03-02T18:39:34Z
Releases: 12.7
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

Files

PathChange+/−
src/bin/initdb/initdb.c modified +3 −0

Discussion