Re: pg_ctl start may return 0 even if the postmaster has been already started on Windows
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: kuroda.hayato@fujitsu.com
Cc: shlok.kyal.oss@gmail.com, michael@paquier.xyz,
pgsql-hackers@lists.postgresql.org
Date: 2023-10-24T06:00:27Z
Lists: pgsql-hackers
Attachments
- v4-0001-Disable-autoruns-for-cmd.exe-on-Windows.patch (text/x-patch)
At Mon, 23 Oct 2023 08:57:19 +0000, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com> wrote in > > I agree with your suggestion. Ultimately, if there's a possibility > > for this to be committed, the message will be consolidated to "could > > not start server". > > Based on the suggestion, I tried to update the patch. > A new argument is_valid is added for reporting callee. Also, reporting formats > are adjusted based on other functions. How do you think? An equivalent check is already done shortly afterward in the calling function. Therefore, we can simply remove the code path for "launcher shell died", and it will work the same way. Please find the attached. Other error cases will fit to "shouldn't occur under normal conditions" errors. There is a possibility that the launcher shell terminates while postmaster is running. Even in such a case, the server continue working without any problems. I contemplated accomodating this case but the effort required seemed disproportionate to the possibility. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
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