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: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
The attached patch improves pg_ctl's win32 service code to eliminate
some possible causes of the stale 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)


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-2017 The PostgreSQL Global Development Group