pgsql: Use native path separators to pg_ctl in initdb

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use native path separators to pg_ctl in initdb
Date: 2021-03-02 18:41:00
Message-ID: E1lH9x6-0007QR-8W@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Reviewed-by: Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAMm1aWaNDuaPYFYMAqDeJrZmPtNvLcJRS++CcZWY8LT6KcoBZw@mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/926139dd04bb77ad3c18c9c69544104d15f69672

Modified Files
--------------
src/bin/initdb/initdb.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-03-02 18:54:08 pgsql: Mark default_transaction_read_only as GUC_REPORT.
Previous Message Tom Lane 2021-03-02 17:14:26 pgsql: Improve performance of regular expression back-references.