X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id B389C30E968 for ; Thu, 12 Jun 2003 17:16:20 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 08770-07 for ; Thu, 12 Jun 2003 14:16:09 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 442B030E92E for ; Thu, 12 Jun 2003 14:16:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5CHG7U6018293; Thu, 12 Jun 2003 13:16:08 -0400 (EDT) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: Still confused about VACUUM vs. VACUUM FULL In-reply-to: <1055436783.27087.38.camel@takin.private.nexcerpt.com> References: <1055434723.27087.23.camel@takin.private.nexcerpt.com> <16631.1055436156@sss.pgh.pa.us> <1055436783.27087.38.camel@takin.private.nexcerpt.com> Comments: In-reply-to Jeff Boes message dated "12 Jun 2003 12:53:03 -0400" Date: Thu, 12 Jun 2003 13:16:07 -0400 Message-ID: <18292.1055438167@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/131 X-Sequence-Number: 9122 Jeff Boes writes: > On Thu, 2003-06-12 at 12:42, Tom Lane wrote: >> How often do you VACUUM? > We've gone from daily, to twice daily, to several times during the "peak > updates" period, and back to twice daily. I suspect that the real problem here is the old open transactions discussed in your other message. Those are preventing VACUUM from reclaiming space. Now that you've got that fixed, you need to revisit your experiments about how often to VACUUM. > We're also ANALYZE-ing the largest 12-18 tables on a cycle: every twenty > minutes, a daemon wakes up and ANALYZEs until they're all done or two > minutes has elapsed, whichever comes first. That sounds a tad excessive; are the statistics really changing that fast? regards, tom lane