BUG #17425: Postgres service does not start if path to data folder ends with backslash. - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17425: Postgres service does not start if path to data folder ends with backslash.
Date
Msg-id 17425-98efe3609921ac7d@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17425
Logged by:          Fabian Wullstein
Email address:      partner.fabian.wullstein@philips.com
PostgreSQL version: 14.2
Operating system:   Windows 10 Pro, Version: 21H1, Build: 19043.1202
Description:

PostgresSQL service does not start if the path to the data folder ends with
a backslash.

PostgresSQL service is able to start with ImagePath:
"C:\Program Files\PostgreSQL\14\bin\pg_ctl.exe" runservice -N
"postgresql-x64-14" -D "C:\Program Files\PostgreSQL\14\data" -w

but fails to start with ImagePath:
"C:\Program Files\PostgreSQL\14\bin\pg_ctl.exe" runservice -N
"postgresql-x64-14" -D "C:\Program Files\PostgreSQL\14\data\" -w

Windows error message (in german):
Dienst "postgresql-x64-14 - PostgreSQL Server 14" wurde auf "Lokaler
Computer" gestartet und dann angehalten. 
Einige Dienste werden automatisch angehalten, wenn sie nicht von anderen
Diensten oder Programmen verwendet werden.


pgsql-bugs by date:

Previous
From: "Lorenz, Christopher"
Date:
Subject: AW: BUG #17393: Delete database after recovery with point-in-time is still missing datafiles
Next
From: "egashira.yusuke@fujitsu.com"
Date:
Subject: RE: Reconnect a single connection used by multiple threads in embedded SQL in C application causes error.