Skip site navigation (1) Skip section navigation (2)

Service control enhancements

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Service control enhancements
Date: 2004-08-24 14:50:50
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E41A7864@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-patches
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.

Please apply.

Regards, Dave.

Attachment: pg_ctl.c.diff
Description: application/octet-stream (1.8 KB)

Responses

pgsql-patches by date

Next:From: Reini UrbanDate: 2004-08-24 19:49:51
Subject: cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c, timezone/pgtz.c
Previous:From: Fabien COELHODate: 2004-08-24 13:48:32
Subject: Re: [PATCHES] BUG #1219: pgxs does not work fully

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group