Re: HELP: Urgent, Vacuum problem - Mailing list pgsql-general

From Tom Lane
Subject Re: HELP: Urgent, Vacuum problem
Date
Msg-id 6076.1165338083@sss.pgh.pa.us
Whole thread Raw
In response to HELP: Urgent, Vacuum problem  ("Schwenker, Stephen" <SSchwenker@thestar.ca>)
List pgsql-general
"Schwenker, Stephen" <SSchwenker@thestar.ca> writes:
> To fix that problem, I have turned off the full vacuum and are just
> doing a standard analyze vacuum.

Good.

> No I'm getting very close to running
> out of space on my disks because the table keeps on growing and the
> database is not re-using deleted record space.  I know this because I
> delete 99% of the records from the table after I have exported them but
> the size of the database tables are not decreasing.

Standard vacuum isn't really intended to decrease table size, but to
help you maintain it at a steady state.  If you're re-using the same
tables this should be OK though.  It sounds to me like you need to raise
your FSM size to let the database track all the free space.  You should
also consider vacuuming more often than once a day.

> I'm using version 7.4.2 on solaris.

You *really* need to update.

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: HELP: Urgent, Vacuum problem
Next
From: "Raymond O'Donnell"
Date:
Subject: Re: Working with one live and one development database