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 1103DD1B4E4 for ; Wed, 29 Oct 2003 18:16:04 +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 73176-05 for ; Wed, 29 Oct 2003 14:15:33 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 4C6B5D1B508 for ; Wed, 29 Oct 2003 14:15:32 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id h9TIFVNu051666 for ; Wed, 29 Oct 2003 18:15:31 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h9TIA2rK050719 for pgsql-admin@postgresql.org; Wed, 29 Oct 2003 18:10:02 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: pg_clog & vacuum oddness Date: Wed, 29 Oct 2003 12:57:17 -0500 Organization: Hub.Org Networking Services Lines: 33 Message-ID: <60brs0j5aa.fsf@dev6.int.libertyrms.info> References: <20031029110358.548105be.threshar@torgo.978.org> <5274.1067445132@sss.pgh.pa.us> <3F9FF092.5849E470@dhs-club.com> <20031029120116.228f7825.threshar@torgo.978.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:AYKwr7N9LarX5rfDj4c3y4qUTNw= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/405 X-Sequence-Number: 10966 threshar@torgo.978.org (Jeff) writes: > On Wed, 29 Oct 2003 11:53:38 -0500 > DHS Webmaster wrote: > >> We vacuum our working database nightly. Although this is not a 'full', >> we don't exclude any tables. We don't do anything with template1 >> (knowingly), so we do not perform any maintenance on it either. > > Why not go through the list in pg_database to make sure you didn't > forget about any (like I did). > > given that template0 and 1 rarely change.. I don't see why we'd need to > vacuum them template0 is probably set to 'not changeable' so that you can't even log in to it. template1 probably isn't hit a _lot_, but surely not "not at all." It is accessed at such times as: - When you run "createdb", data probably gets used from there to populate the new DB. - When you update user IDs, that's shared information likely to "touch" template1. You don't need to vacuum it often, but "seldom" is not quite the same as "never." -- output = ("cbbrowne" "@" "libertyrms.info") Christopher Browne (416) 646 3304 x124 (land)