Re: Foreground vacuum and buffer access strategy - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Foreground vacuum and buffer access strategy
Date
Msg-id CA+TgmoaFWZ0u0o9R+vuqb5KMwteYYQ=ktbWxGi0hQNktt_Mtqg@mail.gmail.com
Whole thread Raw
In response to Foreground vacuum and buffer access strategy  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Foreground vacuum and buffer access strategy
List pgsql-hackers
On Fri, May 25, 2012 at 4:06 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> If I invoke vacuum manually and do so with VacuumCostDelay == 0, I
> have basically declared my intentions to get this pain over with as
> fast as possible even if it might interfere with other processes.
>
> Under that condition, shouldn't it use BAS_BULKWRITE rather than
> BAS_VACUUM?  The smaller ring size leads to a lot of synchronous WAL
> flushes which I think can slow the vacuum down a lot.

Of course, an autovacuum of a really big table could run too slowly,
too, even though it's not a foreground task.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: pg_basebackup --xlog compatibility break
Next
From: Tom Lane
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value