Re: Reclaiming Index Free Pages - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Reclaiming Index Free Pages
Date
Msg-id 10777.1103921145@sss.pgh.pa.us
Whole thread Raw
In response to Reclaiming Index Free Pages  ("Ramy M.Hassan" <rhassan@cs.purdue.edu>)
List pgsql-hackers
"Ramy M.Hassan" <rhassan@cs.purdue.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


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: RC2 and open issues
Next
From: Tom Lane
Date:
Subject: Where do pg_hba.conf include files live?