RE: pg_ctl start may return 0 even if the postmaster has been already started on Windows
Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: 'Kyotaro Horiguchi' <horikyota.ntt@gmail.com>
Cc: "michael@paquier.xyz" <michael@paquier.xyz>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2023-09-19T13:48:55Z
Lists: pgsql-hackers
Attachments
- pg_ctl_waits_for_postmasters_pid_on_windows_3.patch (application/octet-stream) patch
Dear Horiguchi-san, > I added the thread to next CF entry, so let's see the how cfbot says. At least there are several compiler warnings. E.g., * pgwin32_find_postmaster_pid() has "return;", but IIUC it should be "exit(1)" * When DWORD is printed, "%lx" should be used. * The variable "flags" seems not needed. Here is a patch which suppresses warnings, whereas test would fail... You can use it if acceptable. Best Regards, Hayato Kuroda FUJITSU LIMITED
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