Re: Bloated Table

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: Bloated Table
Дата
Msg-id 2f4958ff0905270807u154556f6u61703f4f9917051e@mail.gmail.com
обсуждение исходный текст
Ответ на Bloated Table  (Alexander Schöcke <asc@turtle-entertainment.de>)
Список pgsql-general
On Wed, May 27, 2009 at 3:54 PM, Alexander Schöcke
<asc@turtle-entertainment.de> wrote:
> Hello everybody.
>
> I'm using a view (http://pgsql.tapoueh.org/site/html/news/20080131.bloat.html) to display the bloat (unused disk
space)of the tables in a PostgreSQL database. Using this data I want to implement a database maintenance script
automaticallyexectuting a VACUUM FULL on these tables. 
> Unfortunately I am finding a table to have bloat which can't be reclaimed. I have tried VACUUM, REINDEX, VACUUM FULL
ANALYZEwith REINDEX, and even dump and restore. The view always shows 375MB of bloat for the table. 
>
> Is this normal?
yes it is normal, if you do updates on it, and it doesn't use HOT (for
instance if you update indexed column),

now, in real life you shouldn't really ever need to vacuum full.
Reindex - yes, but not vacuum full.
Make sure, that you adjust fsm_* settings in your config, best thing
is tu run vacuum analyze verbose, and see if it warns you about it
being too small.




--
GJ

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

Предыдущее
От: Emanuel Calvo Franco
Дата:
Сообщение: Re: How to Install Postgres 8.3 in Solaris 10 as a service
Следующее
От: Bill Moran
Дата:
Сообщение: Re: Bloated Table