Re: Problem during Windows service start - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Problem during Windows service start
Date
Msg-id 20191107035513.GJ1768@paquier.xyz
Whole thread Raw
In response to Re: Problem during Windows service start  (Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>)
Responses Re: Problem during Windows service start  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Thu, Sep 05, 2019 at 07:09:45PM -0400, Alvaro Herrera from 2ndQuadrant wrote:
> Can't we have pg_ctl just continue to wait indefinitely?  So we'd set
> SERVICE_START_PENDING when wait_for_postmaster is out of patience, then
> loop again -- until recovery completes.  Exiting pg_ctl on timeout seems
> reasonable for interactive use, but maybe for service use it's not
> reasonable.

The root of the problem here is that the time recovery takes is not
something that can be guessed, and that service registering happens in
the background.  It depends on the time the last checkpoint occurred,
the load on the machine involved and the WAL operations done.  So it
seems to me that Alvaro's idea is something which we could work on for
at least HEAD.  There is also the path of providing a longer timeout,
still that's just a workaround..

My understanding is that this could be qualified as a bug because of
the fact that we require using again pg_ctl after starting the service
from the windows service control center.

So, are there plans to move on with this patch?  It is waiting on
author for some time now.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: TAP tests aren't using the magic words for Windows file access
Next
From: Michael Paquier
Date:
Subject: Re: base backup client as auxiliary backend process