Re: Database size

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: Database size
Дата
Msg-id cone.1181927737.662704.53974.5001@35st.simplicato.com
обсуждение исходный текст
Ответ на Database size  (choksi <choksi.dhaval@gmail.com>)
Список pgsql-performance
choksi writes:

> I had a database which uses to hold some 50 Mill records and disk
> space used was 103 GB. I deleted around 34 Mill records but still the
> disk size is same. Can some on please shed some light on this.

When records are deleted they are only marked in the database.
When you run vacuum in the database that space will be marked so new data
can use the space.

To lower the space used you need to run "vacuum full".
That however can take a while and I think it will lock the database for
some operations.

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

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: Replication
Следующее
От: Gábriel Ákos
Дата:
Сообщение: Re: Replication