Re: Does VACUUM ever free up any disk space?

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: Does VACUUM ever free up any disk space?
Дата
Msg-id Pine.LNX.4.33.0309111316370.19197-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Does VACUUM ever free up any disk space?  (Chris Miles <chris_pg002@psychofx.com>)
Ответы Re: Does VACUUM ever free up any disk space?
Список pgsql-admin
On Thu, 11 Sep 2003, Chris Miles wrote:

> I've read a lot where people recommend using VACUUM FULL
> to free up disk space, especially after many updates/inserts.
>
> But does a regular VACUUM (or VACUUM ANALYSE) ever free up
> any space?
>
> 24/7 production databases cannot be locked for long periods
> of time to run VACUUM FULL, but I do not want data files
> growing indefinitely (any more than they need to) so I hope
> the routine VACCUM ANALYSE will take care of this.
>
> My pg is version 7.2.x but the question can apply to newer
> versions as well if the functionality has changed.

A regular vacuum since 7.2 never actually frees up space, it simply marks
the space in the file as available for reuse.  Note that in many
circumstances this is actually better than freeing up the space, as it
allows the database to store date without having to extend and possibly
fragment the table.


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Does VACUUM ever free up any disk space?
Следующее
От: Michał Małecki
Дата:
Сообщение: Re: How to create schema-specific users?