pg_autovacuum (8.0.4) as Windows service ?

Started by Zlatko Matićover 20 years ago2 messagesgeneral
Jump to latest
#1Zlatko Matić
zlatko.matic1@sb.t-com.hr

When installing pg_autovacuum as Windows service, should user that makes connection be the service account or a superuser ?
For example, I have service account "postgres_service" and database superuser "postgres". Which one should be used in following script:
@echo off
set TARGET_DISC=C:
echo target disc is %TARGET_DISC%
cd %TARGET_DISC%\Program Files\PostgreSQL\8.0\bin
pg_autovacuum.exe pgsql-8.0.4 -I -U user -P password
pause

Thanks,

Zlatko

#2Magnus Hagander
magnus@hagander.net
In reply to: Zlatko Matić (#1)
Re: pg_autovacuum (8.0.4) as Windows service ?

When installing pg_autovacuum as Windows service, should user
that makes connection be the service account or a superuser ?
For example, I have service account "postgres_service" and
database superuser "postgres". Which one should be used in
following script:
@echo off
set TARGET_DISC=C:
echo target disc is %TARGET_DISC%
cd %TARGET_DISC%\Program Files\PostgreSQL\8.0\bin
pg_autovacuum.exe pgsql-8.0.4 -I -U user -P password pause

Database superuser.

//Magnus