Re: Disk space problem...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ken Corey <ken(dot)corey(at)atomic-interactive(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Disk space problem...
Date: 2001-12-01 17:20:09
Message-ID: 15623.1007227209@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Ken Corey <ken(dot)corey(at)atomic-interactive(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Nathan Wilson 2001-12-02 19:38:16 --with-python under MacOSX
Previous Message Ken Corey 2001-12-01 09:43:57 Disk space problem...