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

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, 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 22:49:10
Message-ID: 509ED9E6.1030702@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/10/2012 02:23 PM, Scott Marlowe wrote:
>
>>
>> When in doubt there are the docs:)
>>
>> http://www.postgresql.org/docs/9.1/interactive/routine-vacuuming.html#AUTOVACUUM
>>
>> "The "autovacuum daemon" actually consists of multiple processes. There is a
>> persistent daemon process, called the autovacuum launcher, which is in
>> charge of starting autovacuum worker processes for all databases. The
>> launcher will distribute the work across time, attempting to start one
>> worker within each database every autovacuum_naptime seconds. (Therefore, if
>> the installation has N databases, a new worker will be launched every
>> autovacuum_naptime/N seconds.)"
>
> And apparently it wasn't always this way:
>
> http://www.postgresql.org/docs/8.2/interactive/routine-vacuuming.html#AUTOVACUUM
>
> The autovacuum daemon, when enabled, runs every autovacuum_naptime
> seconds. On each run, it selects one database to process and checks
> each table within that database. VACUUM or ANALYZE commands are issued
> as needed.

Seems to have changed in 8.3:

http://www.postgresql.org/docs/8.3/interactive/routine-vacuuming.html

"Beginning in PostgreSQL 8.3, autovacuum has a multiprocess
architecture: There is a daemon process, called the autovacuum launcher,
which is in charge of starting autovacuum worker processes for all
databases. The launcher will distribute the work across time, but
attempt to start one worker on each database every autovacuum_naptime
seconds. One worker will be launched for each database, with a maximum
of autovacuum_max_workers processes running at the same time..."

>
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bret Stern 2012-11-10 23:58:42 Re: "could not write to output file: Permission denied" during pg_dump
Previous Message Scott Marlowe 2012-11-10 22:23:45 Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum)