Skip site navigation (1) Skip section navigation (2)

Re: Vacuum becomes slow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martin Lesser <ml-pgsql(at)bettercom(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum becomes slow
Date: 2005-06-30 13:31:01
Message-ID: 18107.1120138261@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
Martin Lesser <ml-pgsql(at)bettercom(dot)de> writes:
> the time needed for a daily VACUUM on a table with about 28 mio records
> increases from day to day.

My guess is that the original timings were artificially low because the
indexes were in nearly perfect physical order, and as that condition
degrades over time, it takes longer for VACUUM to scan them.  If that's
the right theory, the runtime should level off soon, and maybe you don't
need to do anything.  You could REINDEX periodically but I think the
time taken to do that would probably be more than you want to spend
(especially since REINDEX locks out writes where VACUUM does not).

You should check that your FSM settings are large enough, but given that
the table itself doesn't seem to be bloating, that's probably not the
issue.

			regards, tom lane

In response to

pgsql-performance by date

Next:From: Tom LaneDate: 2005-06-30 13:48:19
Subject: Re: ODBC driver over network very slow
Previous:From: philippe ventrillonDate: 2005-06-30 12:38:36
Subject: Re: slow simple update?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group