Dave Page wrote:
> The attached patch implements the following fixes to pg_ctl on Windows:
>
> - Fix the -w (wait) option to work in Windows service mode, per bug
> #3382. This is required on Windows because pg_ctl reports running status
> to the service control manager when actually still in recovery/startup,
> causing any dependent services to start too early.
>
> - Prevent the -w option being passed to the postmaster.
>
> - Read the postmaster options file when starting as a Windows service.
>
Applied and backpatched to 8.2. Thanks.
//Magnus