]> granicus.if.org Git - postgresql/commit
The attached patch improves pg_ctl's win32 service code to eliminate
authorBruce Momjian <bruce@momjian.us>
Sat, 28 Aug 2004 23:26:37 +0000 (23:26 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 28 Aug 2004 23:26:37 +0000 (23:26 +0000)
commitfe90fb4d3733550340651351d44efcae35402324
tree234a373967e5786a4ec1dc9604c0ff49b7708e9b
parentf7587aeba898b8b558741006564b86e9d298c0bc
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
src/bin/pg_ctl/pg_ctl.c