From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Zeugswetter Andreas DCP SD <ZeugswetterA(at)spardat(dot)at> |
Cc: | Christopher Browne <cbbrowne(at)acm(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Automatic free space map filling |
Date: | 2006-03-06 14:07:28 |
Message-ID: | 200603061407.k26E7SG23015@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Zeugswetter Andreas DCP SD wrote:
>
> > > But you could do the indexes first and remember how far you
> > can vacuum
> > > the heap later.
> >
> > But the indexes _can't_ be done first; you _first_ need to
> > know which tuples are dead, which requires looking at the
> > table itself.
>
> If we already had the "all tuples visible" bitmap I think we could
> first scan the bitmap and decide whether we can afford to look
> at the visibility info for each entry in the index.
>
> We only collect the ctids before so we don't have the inefficient
> lookups,
> but if we can avoid the lookup in most cases it would again be
> attractive.
The problem is that index to heap lookups are very slow.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Glaesemann | 2006-03-06 14:25:29 | Re: Real Life Data |
Previous Message | Q Beukes | 2006-03-06 13:49:30 | Real Life Data |