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 72A9ED1B571 for ; Wed, 29 Oct 2003 16:55:54 +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 58627-01 for ; Wed, 29 Oct 2003 12:55:23 -0400 (AST) Received: from mail.dhs-club.com (mail.dhs-club.com [63.124.98.242]) by svr1.postgresql.org (Postfix) with ESMTP id 63120D1B52F for ; Wed, 29 Oct 2003 12:55:22 -0400 (AST) Received: from dhs-club.com ([192.168.0.3]) (authenticated) by mail.dhs-club.com (8.11.6/8.11.3) with ESMTP id h9TGtLo12749 for ; Wed, 29 Oct 2003 08:55:21 -0800 Message-ID: <3F9FF092.5849E470@dhs-club.com> Date: Wed, 29 Oct 2003 11:53:38 -0500 From: DHS Webmaster Organization: The DHS Club X-Mailer: Mozilla 4.79 [en]C-CCK-MCD compaq (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: pg_clog & vacuum oddness References: <20031029110358.548105be.threshar@torgo.978.org> <5274.1067445132@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/353 X-Sequence-Number: 10914 This thread caught my eye and I decided to look at our pg_clog directory. Sure enough we have got every clog file since we upgraded back in April, 0000 - 02F8. 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. Questions: 1. Should we be doing a periodic vacuum on template1? 2. Is what I am seeing possibly indicative of something else beside template1 that would show up the postgres log. 3. It is safe to delete all the clog files prior to the last restart of postgres, yes? Tom Lane wrote: > > Jeff writes: > > [ pg_clog not getting truncated ] > > pg_clog is truncated on the basis of the oldest completely vacuumed > database in your installation. Most likely your maintenance script > is failing to vacuum some database(s) (template1, perhaps?) and/or > is doing table-by-table vacuums rather than an unqualified VACUUM. > > I doubt this explains any performance problems though. Old pg_clog > segments don't do anything except sit there. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match -- Bill MacArthur Webmaster DHS Club