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

pg_autovacuum Win32 service patch #2

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_autovacuum Win32 service patch #2
Date: 2004-05-09 08:48:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-hackers-win32
[Third attempt to send this - dunno where they're all going!]

I forgot to CC the start of this to -hackers last time - please see
for background.

Following Magnus' suggestions yesterday I made the following changes:

- The event source is now "PostgreSQL Auto Vacuum"
- Error levels have been added to the error handler to standardise log
entry format and allow use of Win32 event types.
- When installing as a windows service the following options can be used
to specify the uid/pwd to run the service as:

  -N <username>
  -W <password>

- Other options specified when installing as a service are stored in the
registry for use each startup, INCLUDING DATABASE PASSWORD.

In addition, I've also cleaned up the service startup code so that it
terminates properly if there is an error at startup, and modified
InstallService and RemoveService to register/deregister the service as
an event source.

Any comments/criticisms/gasps of horror at all the win32 code? :-)

Regards, Dave

Attachment: pg_autovacuum2.diff.gz
Description: application/x-gzip (9.0 KB)


pgsql-hackers by date

Next:From: Shachar ShemeshDate: 2004-05-09 09:20:29
Subject: Re: Relocatable installs
Previous:From: Dave PageDate: 2004-05-09 07:38:42
Subject: Re: Relocatable installs

pgsql-hackers-win32 by date

Next:From: Dave PageDate: 2004-05-09 08:57:02
Subject: Postmaster service code
Previous:From: Bruce MomjianDate: 2004-05-08 19:14:43
Subject: Re: mingw configure failure detection

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