Re: Eternal vacuuming.... - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Eternal vacuuming....
Date
Msg-id 200005111728.NAA18363@candle.pha.pa.us
Whole thread Raw
In response to Re: Eternal vacuuming....  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
> > In 6.4.x and 6.5.x if you delete a large number of rows (say 100,000 -
> > 1,000,000) then hit vacuum, the vacuum will run literally forever.
> > ...before I finally killed the vacuum process, manually removed the
> > pg_vlock, dropped the indexes, then vacuumed again, and re-indexed.
> > Will this be fixed?
> 
> Patches? ;)
> 
> Just thinking here: could we add an option to vacuum so that it would
> drop and recreate indices "automatically"? We already have the ability
> to chain multiple internal commands together, so that would just
> require snarfing the names and properties of indices in the parser
> backend and then doing the drops and creates on the fly.

We could vacuum the heap table, and conditionally update or recreate the
index depending on how many tuple we needed to move during vacuum of the
heap.

--  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: "Marc G. Fournier"
Date:
Subject: Re: Eternal vacuuming....
Next
From: Vince Vielhaber
Date:
Subject: User's Lounge and Developer's Corner