X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C86BDD1B545 for ; Wed, 29 Oct 2003 17:23:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 58312-08 for ; Wed, 29 Oct 2003 13:23:19 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id BF512D1B4E4 for ; Wed, 29 Oct 2003 13:23:18 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9THNHit012762; Wed, 29 Oct 2003 12:23:17 -0500 (EST) To: Jeff Cc: DHS Webmaster , pgsql-admin@postgresql.org Subject: Re: pg_clog & vacuum oddness In-reply-to: <20031029120116.228f7825.threshar@torgo.978.org> References: <20031029110358.548105be.threshar@torgo.978.org> <5274.1067445132@sss.pgh.pa.us> <3F9FF092.5849E470@dhs-club.com> <20031029120116.228f7825.threshar@torgo.978.org> Comments: In-reply-to Jeff message dated "Wed, 29 Oct 2003 12:01:16 -0500" Date: Wed, 29 Oct 2003 12:23:17 -0500 Message-ID: <12761.1067448197@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/356 X-Sequence-Number: 10917 Jeff writes: > given that template0 and 1 rarely change.. I don't see why we'd need to > vacuum them You have to vacuum template1 periodically if you want pg_clog to shrink. You may know that you've never changed it, but the VACUUM code doesn't know that. template0 need not get vacuumed as long as it's marked datallowconn = false in pg_database. VACUUM assumes it's not been changed if that flag is present. regards, tom lane