Re: database size after a DELETE and VACUUM

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: database size after a DELETE and VACUUM
Дата
Msg-id 20050703142337.GA39504@winnie.fuhr.org
обсуждение исходный текст
Ответ на database size after a DELETE and VACUUM  (Mike.Samson@apcc.com)
Список pgsql-admin
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/

В списке pgsql-admin по дате отправления:

Предыдущее
От: Mike.Samson@apcc.com
Дата:
Сообщение: database size after a DELETE and VACUUM
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: database size after a DELETE and VACUUM