Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3FEDF37C750 for ; Tue, 30 Sep 2008 16:26:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18851-05 for ; Tue, 30 Sep 2008 16:26:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from polaris.pinpointresearch.com (66-7-238-130.static-ip.telepacific.net [66.7.238.130]) by postgresql.org (Postfix) with ESMTP id E1D7637C74E for ; Tue, 30 Sep 2008 16:26:44 -0300 (ADT) Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 87358E00EC84; Tue, 30 Sep 2008 12:26:42 -0700 (PDT) Message-ID: <48E27D72.9040409@pinpointresearch.com> Date: Tue, 30 Sep 2008 12:26:42 -0700 From: Steve Crawford User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Carol Walter CC: pgsql-admin@postgresql.org Subject: Re: What process clears the logs? References: <64D96E8A-8E58-458C-B299-8998112F88FA@indiana.edu> In-Reply-To: <64D96E8A-8E58-458C-B299-8998112F88FA@indiana.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/358 X-Sequence-Number: 30451 Carol Walter wrote: > Greetings, > > As you may be aware, we experienced a problem last week with pg_clogs > that had been deleted, through human error it appears. What process > will clear or delete the pg_clogs? I've been all over the > documentation and I'm not finding a reference to this. > PostgreSQL takes care of this itself. I don't know where it is documented but IIRC from old messages, the number of files in pg_xlog should level out at about two-times your checkpoint_settings value. I'd have to do some digging as I don't recall for sure, but I think that if you are using archive_command setting to archive WAL files the archive command does not return "success", then the WAL file will not be removed/reused. Cheers, Steve