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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
pg_ctl.c.diff application/octet-stream 1.8 KB

Responses

Browse pgsql-patches by date

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