Re: Skipping VACUUM of indexes when no work required

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Skipping VACUUM of indexes when no work required
Date: 2006-02-11 17:53:18
Message-ID: 9659.1139680398@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> We discussed an optimization of VACUUM here
> http://archives.postgresql.org/pgsql-hackers/2005-09/msg00046.php
> that would allow VACUUM to complete faster by avoiding scanning the
> indexes when no rows were removed from the heap by the VACUUM.

After looking at this, I think it is salvageable, but the patch as
written complicates the vacuum-to-index-AM API more than necessary;
there's no reason why the AM has to expose the fact that it skipped
doing anything.

I'll clean it up and reapply.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2006-02-11 19:42:48 Re: Skipping VACUUM of indexes when no work required
Previous Message Bruce Momjian 2006-02-11 17:46:43 Re: Scrollable cursors and Sort performance