pg_ctl start may return 0 even if the postmaster has been already started on Windows

Edit
ID 4573
Title pg_ctl start may return 0 even if the postmaster has been already started on Windows
Topic Bug Fixes
Created 2023-09-19 02:31:34
Last modified 2024-10-07 04:24:19 (1 month, 1 week ago)
Latest email 2024-07-19 18:32:47 (3 months, 4 weeks ago)
Status
2024-11: Waiting on Author
2024-09: Moved to next CF
2024-07: Moved to next CF
2024-03: Moved to next CF
2024-01: Moved to next CF
2023-11: Moved to next CF
Target version
Authors Kyotaro Horiguchi (horiguti)
Reviewers Hayato Kuroda (ha-kun), Yasir Shah (yasir.hussain.shah.gmail.com)Become reviewer
Committer
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/4573
git checkout commitfest/cf/4573
Emails
pg_ctl start may return 0 even if the postmaster has been already started on Windows
First at 2023-09-07 07:07:36 by "Hayato Kuroda (Fujitsu)" <kuroda.hayato at fujitsu.com>
Latest at 2024-07-19 18:32:47 by Robert Haas <robertmhaas at gmail.com>
Latest attachment (v6-0001-Improve-pg_ctl-postmaster-process-check-on-Window.patch) at 2024-01-11 08:33:22 from Kyotaro Horiguchi <horikyota.ntt at gmail.com>
    Attachment (v6-0001-Improve-pg_ctl-postmaster-process-check-on-Window.patch) at 2024-01-11 08:33:22 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (v5-0001-Disable-autoruns-for-cmd.exe-on-Windows.patch) at 2023-10-24 08:25:36 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (v4-0001-Disable-autoruns-for-cmd.exe-on-Windows.patch) at 2023-10-24 06:00:27 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (v3-0001-Disable-autoruns-for-cmd.exe-on-Windows.patch) at 2023-10-23 08:57:19 from "Hayato Kuroda (Fujitsu)" <kuroda.hayato at fujitsu.com> (Patch: Yes)
    Attachment (v2-0001-Disable-autoruns-for-cmd.exe-on-Windows.patch) at 2023-09-22 12:20:56 from "Hayato Kuroda (Fujitsu)" <kuroda.hayato at fujitsu.com> (Patch: Yes)
    Attachment (0001-Disable-autoruns-for-cmd.exe-on-Windows.patch) at 2023-09-22 07:15:51 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (pg_ctl_waits_for_postmasters_pid_on_windows_3.patch) at 2023-09-19 13:48:55 from "Hayato Kuroda (Fujitsu)" <kuroda.hayato at fujitsu.com> (Patch: Yes)
    Attachment (pg_ctl_waits_for_postmasters_pid_on_windows_2.patch) at 2023-09-13 06:52:39 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (pg_ctl_waits_for_postmasters_pid_on_windows_2.patch) at 2023-09-08 05:22:09 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (pg_ctl_waits_for_postmasters_pid_on_windows.patch) at 2023-09-08 05:17:16 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (move_checking.patch) at 2023-09-07 10:53:41 from "Hayato Kuroda (Fujitsu)" <kuroda.hayato at fujitsu.com> (Patch: Yes)
History
When Who What
2024-10-07 04:24:19 Michael Paquier (michael-kun) Closed in commitfest 2024-09 with status: Moved to next CF
2024-08-01 05:53:45 Corey Huinker (coreyh) Closed in commitfest 2024-07 with status: Moved to next CF
2024-07-16 11:58:19 Yasir Shah (yasir.hussain.shah.gmail.com) New status: Waiting on Author
2024-07-16 11:57:37 Yasir Shah (yasir.hussain.shah.gmail.com) Posted review with messageid <172113105761.344725.7570284373523963080.pgcf@coridan.postgresql.org>
2024-07-10 07:50:51 Yasir Shah (yasir.hussain.shah.gmail.com) Added yasir.hussain.shah.gmail.com as reviewer
2024-04-09 08:50:43 Andrey Borodin (x4m) New status: Needs review
2024-04-08 08:22:00 Andrey Borodin (x4m) Closed in commitfest 2024-03 with status: Moved to next CF
2024-02-01 18:23:58 vigneshwaran C (vignesh.postgres) Closed in commitfest 2024-01 with status: Moved to next CF
2024-01-05 19:59:00 Robert Haas (rhaas) New status: Waiting on Author
2023-12-04 08:53:03 John Naylor (john.naylor) Closed in commitfest 2023-11 with status: Moved to next CF
2023-11-27 06:09:25 Sean He (iihero) Removed iihero from reviewers
2023-11-27 06:02:48 Sean He (iihero) Added iihero as reviewer
2023-09-19 02:31:52 Hayato Kuroda (ha-kun) Changed reviewers to Hayato Kuroda (ha-kun)
2023-09-19 02:31:52 Hayato Kuroda (ha-kun) Changed authors to Kyotaro Horiguchi (horiguti)
2023-09-19 02:31:34 Hayato Kuroda (ha-kun) Attached mail thread TYAPR01MB586654E2D74B838021BE77CAF5EEA@TYAPR01MB5866.jpnprd01.prod.outlook.com
2023-09-19 02:31:34 Hayato Kuroda (ha-kun) Created patch record
Edit