Re: Disk space problem... - Mailing list pgsql-novice

From Francisco Reyes
Subject Re: Disk space problem...
Date
Msg-id 20011208090932.I29902-100000@zoraida.natserv.net
Whole thread Raw
In response to Re: Disk space problem...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
On Sat, 1 Dec 2001, Tom Lane wrote:

> Ken Corey <ken.corey@atomic-interactive.com> writes:
> > Several of my tables are being emptied and totally replaced (statistics about
> > how my website is running, that sort of thing).  Is it better to drop the
> > table, and rebuild it in this case?
>
> Consider TRUNCATE.

Does truncate releases all the space from the indexes?

> I suspect if you look at the stats (see pg_class.relpages) you'll find
> that the space VACUUM fails to reclaim is in indexes.

Does it mean that if records are deleted an one does vacuum, that index
space may not be released?


pgsql-novice by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: IF...THEN...ELSE on INSERT
Next
From: Francisco Reyes
Date:
Subject: Multiple '<>' on OR condition not working