Re: Running vacuum after delete does not remove all space allocated

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Running vacuum after delete does not remove all space allocated
Дата
Msg-id g2idcc563d11003311246wd6647af1v16ffc081c6261be5@mail.gmail.com
обсуждение исходный текст
Ответ на Running vacuum after delete does not remove all space allocated  (Chris Barnes <compuguruchrisbarnes@hotmail.com>)
Список pgsql-general
On Wed, Mar 31, 2010 at 12:44 PM, Chris Barnes
<compuguruchrisbarnes@hotmail.com> wrote:
> I have deleted the rows in a table and vacuumed full, there appears to be
> space allocated that after a truncate it removes.
>
> Why is this?

It's how PostgreSQL is designed.  It recycles the space at a later
time, after vacuum has reclaimed the empty space and it puts new data
from inserts and updates into the now free space.  More efficient then
allocating and de-allocating all the time, and lowers fragmentation.

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Select in temporary table
Следующее
От: Sylvain Lara
Дата:
Сообщение: Re : Select in temporary table