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

Re: pg_autovacuum Win32 Service startup delay

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>,pgsql-patches(at)postgresql(dot)org
Subject: Re: pg_autovacuum Win32 Service startup delay
Date: 2005-01-25 16:28:57
Message-ID: 4113.1106670537@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
"Matthew T. O'Connor" <matthew(at)zeut(dot)net> writes:
> Tom Lane wrote:
>> I was a bit worried about the scenario in which J Random Luser tries to
>> start the server twice and ends up with two autovacuum daemons attached
>> to the same postmaster.  I'm not sure if this is possible, probable,
>> or dangerous ... but it seems like a point to consider.

> It is a good point to consider.  Let me be a little more detailed in my 
> explanation and see if that helps:
> * A never give up pg_autovacuum would only be used when run as a windows 
> service.
> * The windows service control manager can still kill pg_autovacuum, so 
> you shouldn't  be able to start more than one that way.
> * You have always been able to run multiple pg_autovacuums, it's not 
> advisable, and it's only bad side effect would be excessive, or more 
> than expected, vacuum commands.

OK, that seems to take care of my worries above.

I agree with the point someone else made that if the service keeps trying
to start forever, it wouldn't be obvious to the user that it wasn't
working.  So a limited time window seems best ... but I think it needs
to be at least five minutes.

			regards, tom lane

In response to

pgsql-patches by date

Next:From: Peter EisentrautDate: 2005-01-25 17:30:10
Subject: Re: Updated translation for Romanian (8.0)
Previous:From: Bruno Wolff IIIDate: 2005-01-25 16:25:47
Subject: Re: [PATCHES] Merge pg_shadow && pg_group -- UNTESTED

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