Skip site navigation (1) Skip section navigation (2)

Re: Thoughts on maintaining 7.3

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>,"Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>,pgsql-hackers(at)postgresql(dot)org
Subject: Re: Thoughts on maintaining 7.3
Date: 2003-10-04 03:42:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Though the new code will put empty index pages into the free-space map,
> > will it also shrink the index file to remove those pages?
> If there are free pages at the end, yes --- but it won't move pages
> around.  This is about the same story as for plain VACUUM ...

I know indexes behave the same as heap for vacuum.  My point was that
the vacuum full case is different.  Vacuum full moves heap tuples from
the end to fill slots and then frees the pages at the end via
truncation.  (100% compaction, guaranteed.)  We can't move index tuples
around like that, of course, so that leaves us with partially filled

Do we move empty index pages to the end before truncation during vacuum

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2003-10-04 03:55:42
Subject: Re: pgsql-server/ oc/src/sgml/runtime.sgml rc/back ...
Previous:From: Tom LaneDate: 2003-10-04 03:36:57
Subject: Re: Thoughts on maintaining 7.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group