X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 53D039F9B01 for ; Thu, 25 May 2006 17:03:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 25925-04 for ; Thu, 25 May 2006 17:03:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from stash.illumen.com (unknown [64.207.29.137]) by postgresql.org (Postfix) with ESMTP id B3C099F94EA for ; Thu, 25 May 2006 17:03:41 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: pg_clog questions X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 25 May 2006 14:03:40 -0600 Message-ID: <8511B4970E0D124898E973DF496F9B432516E3@stash.stackdump.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] pg_clog questions thread-index: AcaANevXAjvUvFIXS46LwYdBU+WMYQAABBNA From: "Benjamin Krajmalnik" To: "Tom Lane" Cc: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/363 X-Sequence-Number: 21895 I have autovacuum turned on with the default settings. The issue is that we are mostly inserting records, sometimes updating, very seldom deleting. The ones which get deleted are in partitioned tables, and will be done away with via truncate once the data retention period is over. Logs show that autovacuum is running on all databases. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Thursday, May 25, 2006 2:01 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_clog questions=20 "Benjamin Krajmalnik" writes: > While checking our server, I noticed quite a few files in the pg_clog > directory. > Is there a maintenance task which can be run to purge the files which > are no longer needed? VACUUM. If they're not disappearing, you aren't running an adequate vacuum regime --- missing out some databases, perhaps? regards, tom lane