The attached patch improves pg_ctl's win32 service code to eliminate

Bruce Momjian <bruce@momjian.us>

Commit: fe90fb4d3733550340651351d44efcae35402324
Author: Bruce Momjian <bruce@momjian.us>
Date: 2004-08-28T23:26:37Z
Releases: 8.0.0
The attached patch improves pg_ctl's win32 service code to eliminate
some possible causes of the stale postmaster.pid problem that some users
have reported.

- The service did not properly report that it accepts
SERVICE_CONTROL_SHUTDOWN events, thus it's possible the SCM simply
killed the postmaster on shutdown.

- 'WaitHints' are now given to the SCM to prevent it timing out if
pg_ctl doesn't respond to a control event quickly enough.

- During shutdown, the service checkpoint counter is incremented every
five seconds for up to a minute to prevent the SCM timing out and
assuming the service is not responding.

Dave Page

Files

PathChange+/−
src/bin/pg_ctl/pg_ctl.c modified +18 −4