Re: Autovacuum in the backend

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Autovacuum in the backend
Date: 2005-06-17 09:16:14
Message-ID: Pine.LNX.4.58.0506171913170.31550@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Fri, 17 Jun 2005, Russell Smith wrote:

> > Added to TODO:
> >
> > * Create a bitmap of pages that need vacuuming
> >
> > Instead of sequentially scanning the entire table, have the background
> > writer or some other process record pages that have expired rows, then
> > VACUUM can look at just those pages rather than the entire table. In
> > the event of a system crash, the bitmap would probably be invalidated.
> >
> Further to this, is there any use case for allowing FSM, or this DSM to spill to disk
> if the space fills up. It would allow the possibility of unusual changes to the db
> to not loose space. You could just load part of the overflow from the disk back
> int the FSM in memory and continue using free space.

FSM splilling to disk would be a problem. The reason is that when we need
to allocate an empty page, we hit the FSM first. If that operation becomes
disk bound, large updates and inserts are going to really suck from a
performance point of view.

The idea I discussed is disk backed, because its the first few pages of
every heap segment. This map doesn't mean that pages are free. It means
they've been modified.

Gavin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Sherry 2005-06-17 09:18:30 Re: Autovacuum in the backend
Previous Message Russell Smith 2005-06-17 09:08:07 Re: Autovacuum in the backend

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2005-06-17 09:18:30 Re: Utility database (Was: RE: Autovacuum in the backend)
Previous Message Russell Smith 2005-06-17 09:08:07 Re: Autovacuum in the backend