Re: RFC: changing autovacuum_naptime semantics

From: Galy Lee <lee(dot)galy(at)oss(dot)ntt(dot)co(dot)jp>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RFC: changing autovacuum_naptime semantics
Date: 2007-03-09 06:41:28
Message-ID: 45F10198.3080506@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Tom Lane wrote:
> Er, why not just finish out the scan at the reduced I/O rate? Any sort

Sometimes, you may need to vacuum large table in maintenance window and
hot table in the service time. If vacuum for hot table does not eat two
much foreground resource, then you can vacuum large table with a lower
IO rate outside maintenance window; but if vacuum for hot table is
overeating the system resource, then launcher had better to stop the
long running vacuum outside maintenance window.

But I am not insisting on the stop-start feature at this moment.
Changing the cost delay dynamically sounds more reasonable. We can use
it to balance total I/O of workers in service time or maintenance time.
It is not so difficult to achieve this by leveraging the share memory of
autovacuum.

Best Regards
Galy Lee

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-03-09 06:43:38 Re: Log levels for checkpoint/bgwriter monitoring
Previous Message Tom Lane 2007-03-09 06:36:30 Re: who gets paid for this