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

From tomas@tuxteam.de
Subject Re: Resumable vacuum proposal and design overview
Date
Msg-id 20070226104556.GA29279@www.trapp.net
Whole thread Raw
In response to Resumable vacuum proposal and design overview  (Galy Lee <lee.galy@oss.ntt.co.jp>)
Responses Re: Resumable vacuum proposal and design overview
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Feb 26, 2007 at 06:21:50PM +0900, Galy Lee wrote:
> Hi
> 
> We are developing a new feature for vacuum, here is a brief overview
> about it.

[...]

> Concurrent vacuum mainly has the following steps to vacuum a table:
> 
>   1. scan heap to collect dead tuple list
>   2. (if the table has indexes) scan and sweep indexes
>   3. sweep dead tuples collected in step 1
>   4. perform additional index cleanup operation
>   5. (if a certain of free space found) truncate table
>   6. register free space to FSM
>   7. update statistics of the table

[...]

> This implementation accepts stop request at *blocks level* in step 1-4.

WARNING: I don't really know what I'm talking about -- but considering
that vaccuming a large table across several "maintainance windows" is
one of the envisioned scenarios, it might make sense to try to update
the statistics (i.e. to do partially step 7) on each partial run.
Otherwise the table's stats might wander off for quite long times?

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF4rpkBcgs9XrR2kYRAoZ1AJwMOSpxlbVSYtPKitEhjem5Jrax7gCeMokx
8DLhqBv9QrtGIDPKOKUi9qw=
=WIiA
-----END PGP SIGNATURE-----



pgsql-hackers by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: Resumable vacuum proposal and design overview
Next
From: Heikki Linnakangas
Date:
Subject: Bitmap index stuff