Re: Reclaiming Index Free Pages

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ramy M(dot)Hassan" <rhassan(at)cs(dot)purdue(dot)edu>
Cc: "Pgsql Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reclaiming Index Free Pages
Date: 2004-12-24 20:45:45
Message-ID: 10777.1103921145@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Ramy M.Hassan" <rhassan(at)cs(dot)purdue(dot)edu> writes:
> I was wondering how index access methods reclaim the free disk pages after
> they are no longer used.

Btree and hash can both recycle unused pages, though neither is very
good about physically shrinking the file (neither can move existing
pages for instance). I dunno anything about rtree or gist though.

If you've got a horribly bloated index that you need to physically
shrink, REINDEX is the recommended answer at the moment.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-12-25 20:40:46 Where do pg_hba.conf include files live?
Previous Message Greg Stark 2004-12-24 20:22:05 Re: RC2 and open issues