Re: How to fast the REINDEX

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: How to fast the REINDEX
Дата
Msg-id 4BB40EE8.2080005@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: How to fast the REINDEX  (Jaime Casanova <jcasanov@systemguards.com.ec>)
Ответы Re: How to fast the REINDEX  (Steve Clark <sclark@netwolves.com>)
Список pgsql-performance
Jaime Casanova wrote:
> On Wed, Mar 31, 2010 at 5:33 PM, raghavendra t
> <raagavendra.rao@gmail.com> wrote:
>>>> Why are you doing that?
>> Our table face lot of updates and deletes in a day, so we prefer reindex to
>> update the indexes as well overcome with a corrupted index.
>>
>
> do you have a corrupted index? if not, there is nothing to do...
> REINDEX is not a mantenance task on postgres

Actually, if your free_space_map (pre 8.4) isn't up to keeping track of
bloat, or autovac isn't running enough, you're likely to get bloat of
indexes as well as tables that may need VACUUM FULL + REINDEX to
properly clean up.

It's probably better to fix your fsm/autovac settings then CLUSTER the
table so it doesn't happen again, though.

--
Craig Ringer

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: temp table "on commit delete rows": transaction overhead
Следующее
От: Steve Clark
Дата:
Сообщение: Re: How to fast the REINDEX