From: Michael Fuhr <mike@fuhr.org>
To: Mike.Samson@apcc.com
Cc: pgsql-admin@postgresql.org
Subject: Re: database size after a DELETE and VACUUM
Date: Sun, 3 Jul 2005 08:23:38 -0600
Message-ID: <20050703142337.GA39504@winnie.fuhr.org> (raw)
In-Reply-To: <OF10E93ADC.96387340-ON85257031.004879C3-85257031.004A3C0E@apcc.com>
References: <OF10E93ADC.96387340-ON85257031.004879C3-85257031.004A3C0E@apcc.com>
On Fri, Jul 01, 2005 at 09:30:50AM -0400, Mike.Samson@apcc.com wrote:
>
> I would expect the database size to decrease after the VACUUM.
Note what the documentation says about VACUUM and recovering disk
space:
http://www.postgresql.org/docs/8.0/static/maintenance.html#VACUUM-FOR-SPACE-RECOVERY
"There are two variants of the VACUUM command. The first form,
known as 'lazy vacuum' or just VACUUM, marks expired data in tables
and indexes for future reuse; it does not attempt to reclaim the
space used by this expired data immediately. Therefore, the table
file is not shortened, and any unused space in the file is not
returned to the operating system. This variant of VACUUM can be
run concurrently with normal database operations."
"The standard form of VACUUM is best used with the goal of maintaining
a fairly level steady-state usage of disk space. If you need to
return disk space to the operating system you can use VACUUM FULL --
but what's the point of releasing disk space that will only have
to be allocated again soon?"
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mike@fuhr.org, Mike.Samson@apcc.com
Subject: Re: database size after a DELETE and VACUUM
In-Reply-To: <20050703142337.GA39504@winnie.fuhr.org>
References: <OF10E93ADC.96387340-ON85257031.004879C3-85257031.004A3C0E@apcc.com> <20050703142337.GA39504@winnie.fuhr.org>
* 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