Re: pg_ctl start may return 0 even if the postmaster has been already started on Windows
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: kuroda.hayato@fujitsu.com, shlok.kyal.oss@gmail.com, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
Date: 2024-01-05T19:58:55Z
Lists: pgsql-hackers
On Tue, Oct 24, 2023 at 4:28 AM Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote: > In the attached, fixed the existing two messages, and adjusted one > message to display an error code, all in the consistent format. Hi, I'm not a Windows expert, but my guess is that 0001 is a very good idea. I hope someone who is a Windows expert will comment on that. 0002 seems problematic to me. One potential issue is that it would break if someone renamed postgres.exe to something else -- although that's probably not really a serious problem. A bigger issue is that it seems like it would break if someone used pg_ctl to start several instances in different data directories on the same machine. If I'm understanding correctly, that currently mostly works, and this would break it. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Re-enable autoruns for cmd.exe on Windows
- 74b8e6a69802 18.0 landed
-
Re-enable autoruns for for cmd.exe on Windows
- fa1a63dffcd7 17.0 landed
-
pg_regress: Disable autoruns for cmd.exe on Windows
- e50a52b2b448 12.18 landed
- 2a0eb80ae4ad 13.14 landed
- 4a7475e9a332 14.11 landed
- 7e7d827f57b9 15.6 landed
- 506c77f9b2e5 16.2 landed
- b83747a8a65b 17.0 landed
-
pg_ctl: Disable autoruns for cmd.exe on Windows
- 9e70e6564fc8 12.18 landed
- c8aab699edd6 13.14 landed
- 4c6944223ef4 14.11 landed
- 33d1be06aee0 15.6 landed
- 714bfb7813ed 16.2 landed
- 9886744a361b 17.0 landed