Re: Vacuum thoughts - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Vacuum thoughts
Date
Msg-id 87n0bvswp2.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: Vacuum thoughts  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@MIT.EDU> writes:

> Tom Lane <tgl@sss.pgh.pa.us> writes:
> 
> > You keep ignoring the problem of removing index entries.  To vacuum an
> > individual page, you need to be willing to read in (and update) all
> > index pages that reference the tuples-to-be-deleted.  
> 
> Hm. If the visibility information were stored in the index then that could be
> postponed and done when the index page was read or when it was flushed.

Or possibly if we could reuse the space in the table without updating the
index and be able to recognize that the tuple no longer corresponded to the
index entry when we next saw the index entry.

I suspect that would take as much space to keep track of as the visibility
information though.

-- 
greg



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: In-doubt window
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: In-doubt window