Re-enable autoruns for cmd.exe on Windows
authorMichael Paquier <[email protected]>
Mon, 8 Jul 2024 00:43:59 +0000 (09:43 +0900)
committerMichael Paquier <[email protected]>
Mon, 8 Jul 2024 00:43:59 +0000 (09:43 +0900)
commit74b8e6a698025fbea5a5e22ea09d07d97188c1d6
treec3f8eb57a0343eb5751440a44a45cd1c753fe256
parent066e8ac6ea8bc2af79dc86273a09ba7c1a39f7fd
Re-enable autoruns for cmd.exe on Windows

This acts as a revert of b83747a8a65b and 9886744a361b.  As pointed out
by Noah, HEAD and REL_17_STABLE are in a weird state where the code
paths adding /D would limit the spawn of child processes, but we still
have code paths where the spawn of more than one child process(es) would
be possible.

Let's remove these /D switches for now, to bring back the code into a
state consistent with how autorun is configured on a Windows host.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/20240630021211[email protected]
Backpatch-through: 17
src/bin/pg_ctl/pg_ctl.c
src/test/regress/pg_regress.c