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 5C11230DC3A for ; Thu, 12 Jun 2003 16:53:17 +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 06684-01 for ; Thu, 12 Jun 2003 13:53:06 -0300 (ADT) Received: from yapok.nexcerpt.com (mail.nexcerpt.com [64.147.202.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2B0AE30E8E8 for ; Thu, 12 Jun 2003 13:53:05 -0300 (ADT) Received: from takin.private.nexcerpt.com (zorro.nexcerpt.com [64.147.202.1]) by yapok.nexcerpt.com (8.11.6/8.11.6) with ESMTP id h5CGr3732305; Thu, 12 Jun 2003 12:53:03 -0400 Subject: Re: Still confused about VACUUM vs. VACUUM FULL From: Jeff Boes To: Tom Lane Cc: pgsql-admin@postgresql.org In-Reply-To: <16631.1055436156@sss.pgh.pa.us> References: <1055434723.27087.23.camel@takin.private.nexcerpt.com> <16631.1055436156@sss.pgh.pa.us> Content-Type: text/plain Organization: Nexcerpt, Inc. Message-Id: <1055436783.27087.38.camel@takin.private.nexcerpt.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 12 Jun 2003 12:53:03 -0400 Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/128 X-Sequence-Number: 9119 On Thu, 2003-06-12 at 12:42, Tom Lane wrote: > Jeff Boes writes: > > For large (>1 million rows) tables > > which have a pretty high turn-over (average life span of a row is 3 > > days), should there be any query performance differences whether you > > VACUUM FULL or not? > > How often do you VACUUM? Do you have enough FSM space to support the > number of pages that get dirtied between vacuums? If you don't, the > physical table size will bloat over time, leading to progressive > slowdown. > We've gone from daily, to twice daily, to several times during the "peak updates" period, and back to twice daily. 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. max_fsm_relations = 200 max_fsm_pages = 350000 We have around 220 tables total, only 40 of which have more than 1000 pg_class.reltuples. -- Jeff Boes vox 269.226.9550 ext 24 Database Engineer fax 269.349.9076 Nexcerpt, Inc. http://www.nexcerpt.com ...Nexcerpt... Extend your Expertise