Re: Vacuum improvement

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Vacuum improvement
Date: 2002-10-16 04:04:23
Message-ID: 20021016040423.GA15436@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 15, 2002 at 11:52:35PM -0400, Tom Lane wrote:
> Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> writes:
> > have a parameter which specified how much of the table is vacuumed. That
> > is, you could specify:
> > VACUUM FULL test 20 precent;
>
> Erm ... but which 20 percent? In other words, how could you arrange for
> repeated applications of such a command to cover the whole table, and
> not just retrace an already-cleaned-out portion?

Maybe each relation block can have a last-vacuumed timestamp? Somewhere
in the table there would have to be a linked list of least-recently
vacuumed blocks so the vacuum cleaner does not have to read every
block to know which one to clean.

Or maybe some system table can provide information about activity in
each block since last vacuum. This forces the use of the stat
collector...

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El sabio habla porque tiene algo que decir;
el tonto, porque tiene que decir algo" (Platon).

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2002-10-16 04:16:44 Re: Vacuum improvement
Previous Message Tom Lane 2002-10-16 03:52:35 Re: Vacuum improvement