From: | Christopher Browne <cbbrowne(at)acm(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: VACUUM FULL on 24/7 server |
Date: | 2004-10-03 01:26:36 |
Message-ID: | m3d6007fsj.fsf@wolfe.cbbrowne.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
aserba(at)gmail(dot)com (Aleksey Serba) wrote:
> Hello!
>
> I have 24/7 production server under high load.
> I need to perform vacuum full on several tables to recover disk
> space / memory usage frequently ( the server must be online during
> vacuum time )
The main thought is: "Don't do that."
It is almost certainly the wrong idea to do a VACUUM FULL.
Assuming that the tables in question aren't so large that they cause
mass eviction of buffers, it should suffice to do a plain VACUUM (and
NOT a "VACUUM FULL") on the tables in question quite frequently.
If the tables _are_ rather large, then you might want to look into the
"lazier" vacuum patch which causes the vacuum process to sleep once in
a while so as to diminish the "eviction" effects. A version of this
was proposed for 7.3, and I know Jan Wieck has had a patch for 7.4.
--
let name="cbbrowne" and tld="acm.org" in name ^ "@" ^ tld;;
http://linuxfinances.info/info/spiritual.html
I am not a number!
I am a free man!
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Luc Lachance | 2004-10-03 01:29:16 | Re: earthdistance is not giving correct results. |
Previous Message | Bruno Wolff III | 2004-10-03 01:11:05 | Re: earthdistance is not giving correct results. |