Re: VACUUM and 24/7 database operation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas(dot)Favier(at)accelance(dot)fr
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: VACUUM and 24/7 database operation
Date: 2001-01-23 17:53:55
Message-ID: 7085.980272435@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas(dot)Favier(at)accelance(dot)fr writes:
> - Is 2 minutes a standard time for vacuuming a 500.000 rows table ?
> - Can it be reduced ?
> - In a far future, what are the problems we can run into not vacuuming
> that table ? We have already seen that after a month, some transactions
> involving where id >= some_value take forever, so we supressed them.

If it takes a month before query performance gets bad, then perhaps you
could vacuum the table only once a month. However, that vacuum would
probably take longer than two minutes, so it's a tradeoff...

We have plans for 7.2 to reduce the need for periodic vacuums, but that
won't help you much now.

There are patches available for a "lazy vacuum" process on 7.0.3,
which can be a win if vacuum only needs to get rid of a few rows.
But they're not very thoroughly tested IMHO. See
http://people.freebsd.org/~alfred/vacfix/

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gunnar R|nning 2001-01-23 18:07:28 Re: Looking for info on Solaris 7 (SPARC) specific considerations
Previous Message Mitch Vincent 2001-01-23 17:30:43 Re: plpgsql - cont'd