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

From Tom Lane
Subject Re: Disk space problem...
Date
Msg-id 15623.1007227209@sss.pgh.pa.us
Whole thread Raw
In response to Disk space problem...  (Ken Corey <ken.corey@atomic-interactive.com>)
Responses Re: Disk space problem...  (Ken Corey <ken.corey@atomic-interactive.com>)
Re: Disk space problem...  (Francisco Reyes <lists@natserv.com>)
List pgsql-novice
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.

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.  Possibly you've
gone overboard on adding indexes to your database; are there any that
you don't need?

            regards, tom lane

pgsql-novice by date:

Previous
From: Ken Corey
Date:
Subject: Disk space problem...
Next
From: Nathan Wilson
Date:
Subject: --with-python under MacOSX