Re: pg_autovacuum Win32 Service Code

From: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgsql-hackers-win32(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: pg_autovacuum Win32 Service Code
Date: 2004-08-10 20:40:40
Message-ID: 411932C8.3000109@zeut.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32

Tom Lane wrote:

> "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
>>Some time ago I posted a patch to allow pg_autovacuum to be run as a
>>service on Windows, on the understanding that if pg_autovacuum didn't
>>make it into the backend, it would be applied. I followed up Tom's
>>message to Matthew apologising for not including his backend integration
>>patches with a request that the patch be applied to allow use by Windows
>>users.
>
> I held off doing anything about this for beta1 because I wanted
> Matthew's input first, and he was going to be gone over the weekend.
> Hopefully he's returned now and can comment on whether he sees any
> problem.

I am back, and caught up on email now.

I took a quick look at the patch Dave submitted to the pathes list on
5/11/04 (Let me know if I looked at the wrong one). Without having
actually having applied the patch or tried it out, it looks OK to me.
Basically it just adds a few command line options and related code that
tells pg_autovacuum to (un)register itself as a service, adds a handler
for service manager requests and changes the the logging to use the
windows event log.

One comment: IMHO the pg_autovacuum service should probably be dependant
on the PostgreSQL service. This will cooridinate their respective
startups and shutdowns, and will prevent pg_autovacuum from exiting with
an error message about not able to connect to the postmaster.

Dave, do you plan on having the windows installer automatically install
pg_autovacuum and setup the service?

Matthew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-08-10 21:31:07 Re: PITR - Some data is not recovered.
Previous Message Kevin Brown 2004-08-10 20:19:47 Re: Tablespace issues (comment on ,moving indexes)

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Dru 2004-08-10 23:56:05 problem with postgresql starting.
Previous Message Andrew Dunstan 2004-08-10 18:23:48 Re: PITR on Win32 - Archive and Restore