BUG #17425: Postgres service does not start if path to data folder ends with backslash.

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: partner(dot)fabian(dot)wullstein(at)philips(dot)com
Subject: BUG #17425: Postgres service does not start if path to data folder ends with backslash.
Date: 2022-03-04 10:14:30
Message-ID: 17425-98efe3609921ac7d@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17425
Logged by: Fabian Wullstein
Email address: partner(dot)fabian(dot)wullstein(at)philips(dot)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.

Browse pgsql-bugs by date

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