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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-performance by date

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