From: Tom Lane <tgl@sss.pgh.pa.us>
To: Patric de Waha <lists@p-dw.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Vacuum full considered useful ;)
Date: Sat, 14 Jul 2007 12:32:48 -0400
Message-ID: <18550.1184430768@sss.pgh.pa.us> (raw)
In-Reply-To: <4698F0CF.7000602@p-dw.com>
References: <4698F0CF.7000602@p-dw.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, lists@p-dw.com
Subject: Re: Vacuum full considered useful ;)
In-Reply-To: <18550.1184430768@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox