Re: Vacuum full considered useful ;) - Mailing list pgsql-performance

From Tom Lane
Subject Re: Vacuum full considered useful ;)
Date
Msg-id 18550.1184430768@sss.pgh.pa.us
Whole thread Raw
In response to Vacuum full considered useful ;)  (Patric de Waha <lists@p-dw.com>)
List pgsql-performance
Patric de Waha <lists@p-dw.com> writes:
>     Yesterday I switched from 8.1 to 8.2. So I needed to dump the dbase
>     and reimport it. The dbase after 4 months of running without "vacuum
> full"
>     reached 60 gigabyte of diskspace. Now after a fresh import it only
> has 5 gigabyte!

>     No wonder, I got IO problems with such a fragmentation.

Indeed, but routine VACUUM FULL is not the best answer.  What this
suggests is that you don't have the FSM size (max_fsm_pages and possibly
max_fsm_relations) set high enough for your DB size.  If it isn't
big enough then you'll "leak" reusable space over time.  Also, if
you are using manual rather than autovacuum you might need to be
vacuuming more often.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Vacuum full considered useful ;)
Next
From: Guillaume Lelarge
Date:
Subject: Re: Vacuum full considered useful ;)