The attached patch allows pg_autovacuum to run as an application or a
service on Win32. There are minor changes that also affect *nix -
mainly:
- The error logging function now takes an error level as an argument for
more consistent formatting and use in the windows event log.
- The default debug level is now 0 as 1 was creating a huge amount of
log output even on a small database.
- The main program loop has been moved into a separate function so it
can be called by the windows Service Control Manager.
Regards, Dave.