Re: [HACKERS] Re: vacuum slowness - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Re: vacuum slowness
Date
Msg-id 199903180245.VAA23267@candle.pha.pa.us
Whole thread Raw
In response to Re: vacuum slowness  (Vadim Mikheev <vadim@krs.ru>)
List pgsql-hackers
> Bruce Momjian wrote:
> > 
> > I just deleted all 50,000 rows from a table that has one int4 and one text
> > field.
> > 
> > Why does vacuum take so long?  If all the rows are superceeded, so no
> > rows actually have to be moved, should it take so long for vacuum to
> > run?
> 
> Indices?

Yes.  That seems to be the problem.  45k lines, COPY is fast, DELETE is
fast if there are no indexes.  With an index, it takes a long time. 
Bummer.  Ideas?


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@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: Bruce Momjian
Date:
Subject: Re: [HACKERS] "CANNOT EXTEND" -
Next
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: One more globe