Re: [HACKERS] Index recreation in vacuum - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Index recreation in vacuum
Date
Msg-id 200001192132.QAA26048@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Index recreation in vacuum  (Dmitry Samersoff <dms@wplus.net>)
List 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 by date:

Previous
From: Dmitry Samersoff
Date:
Subject: Re: [HACKERS] Index recreation in vacuum
Next
From: Dmitry Samersoff
Date:
Subject: Re: [HACKERS] Index recreation in vacuum