Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum)

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Lists <lists(at)benjamindsmith(dot)com>, pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum)
Date: 2012-11-10 21:12:35
Message-ID: CAMkU=1zJ=e8Y7N4NBLOcKQ7ORXamVkcSiHAijG7Y8yB2=ryPPg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Nov 9, 2012 at 5:56 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
>
> As well, since the default nap time is 1 minute, it will take at least
> 50 minutes to vacuum each db as nap time is how long autovac waits
> between databases.

That isn't how it works. The naptime is per database, not per
cluster. If the naptime is 1 minute and there are 50 "active"
databases, then it will launch a new worker every 1.2 seconds
(assuming the old ones finish fast enough that doing so would not
exceed autovacuum_max_workers)

Cheers,

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2012-11-10 22:08:52 Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum)
Previous Message Jeff Janes 2012-11-10 21:05:52 Re: PG defaults and performance (was Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum))