Re: [HACKERS] Index recreation in vacuum

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Index recreation in vacuum
Дата
Msg-id 200001192132.QAA26048@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Index recreation in vacuum  (Dmitry Samersoff <dms@wplus.net>)
Список pgsql-hackers
> > I heard from someone that old vacuum had been like so.
> > Probably 2x disk space for big tables was a big disadvantage.
> 
> Yes, It is critical.
> 
> How about sequence like this:
> 
> * Drop indices (keeping somewhere index descriptions)
> * vacuuming table
> * recreate indices
> 
> If something crash, user have been noticed 
> to re-run vacuum or recreate indices by hand 
> when system restarts.
> 
> I use script like described above for vacuuming
>  - it really increase vacuum performance for large table.

We need two things:
auto-create index on startupallow vacuum to run only if number of tuples superceeded > X %

--  Bruce Momjian                        |  http://www.op.net/~candle pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Dmitry Samersoff
Дата:
Сообщение: Re: [HACKERS] Index recreation in vacuum
Следующее
От: Dmitry Samersoff
Дата:
Сообщение: Re: [HACKERS] Index recreation in vacuum