Re: Resumable vacuum proposal and design overview - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Resumable vacuum proposal and design overview
Date
Msg-id 20476.1172634505@sss.pgh.pa.us
Whole thread Raw
In response to Re: Resumable vacuum proposal and design overview  (Galy Lee <lee.galy@oss.ntt.co.jp>)
Responses Re: Resumable vacuum proposal and design overview  (Galy Lee <lee.galy@oss.ntt.co.jp>)
List pgsql-hackers
Galy Lee <lee.galy@oss.ntt.co.jp> writes:
> Tom Lane wrote:
>> ... or set a flag to stop at the next cycle-completion point.

> The extra cost to clean indexes may prevent this approach to work in
> practices.

Huh?  There is no extra cost in what I suggested; it'll perform
exactly the same number of index scans that it would do anyway.

>> Perhaps a more useful answer to the problem of using a
>> defined maintenance window is to allow VACUUM to respond to changes in
>> the vacuum cost delay settings on-the-fly.

> This is a good idea! Itagaki also have talked about exactly the same
> idea to me yesterday.

> But if we change the parameters on-fly to make vacuum less aggressive,
> my concern is that: is there any potential problems to run vacuum in
>  several days?

If the table is sufficiently large, that could happen anyway.  The
issues here, I think, are to not eat resources that foreground processes
need (which vacuum-cost-delay addresses) and to not block vacuuming of
hot-update tables (which can be addressed by allowing multiple autovac
workers).  So I'm not really convinced that being able to stop a table
vacuum halfway is critical.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: COMMIT NOWAIT Performance Option
Next
From: "John Bartlett"
Date:
Subject: Re: [PATCHES] - WIP Patch Updatable Cursor