Re: [HACKERS] Increase Vacuum ring buffer. - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] Increase Vacuum ring buffer.
Date
Msg-id 20170727164637.6b6kjuhlwvjsapsf@alvherre.pgsql
Whole thread Raw
In response to Re: [HACKERS] Increase Vacuum ring buffer.  (Claudio Freire <klaussfreire@gmail.com>)
Responses Re: [HACKERS] Increase Vacuum ring buffer.
List pgsql-hackers
Claudio Freire wrote:

> > The vacuuming the very large table with no index could also take a
> > long time, and it scans and vacuums blocks one by one. So I imagined
> > that we can vacuum the FSM once vacuumed a certain amount of blocks.
> > And that can avoid bloating table during the long-time vacuum.
> 
> Could do that. I'll see about doing something of the sort and
> submitting it as a separate patch.

Vacuuming of the FSM is in no way strictly tied to vacuuming the heap
(it's not really "vacuuming", it's just about updating the upper layers
to match the data in the leaves).  I think we could use the new autovac
"workitem" infrastructure and tack an item there once in a while for FSM
vacuuming ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Claudio Freire
Date:
Subject: Re: [HACKERS] Increase Vacuum ring buffer.
Next
From: Claudio Freire
Date:
Subject: Re: [HACKERS] Increase Vacuum ring buffer.