Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0E51B37C750 for ; Tue, 30 Sep 2008 18:58:59 -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 53305-06 for ; Tue, 30 Sep 2008 18:58:42 -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 B1A8737C70B for ; Tue, 30 Sep 2008 18:58:42 -0300 (ADT) Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id B23C1E00EC84; Tue, 30 Sep 2008 14:58:36 -0700 (PDT) Message-ID: <48E2A10C.9060602@pinpointresearch.com> Date: Tue, 30 Sep 2008 14:58:36 -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> <48E27D72.9040409@pinpointresearch.com> In-Reply-To: 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/360 X-Sequence-Number: 30453 Carol Walter wrote: > Ah-h-h, that's exactly my question. What part of Postgres "takes care > of this itself." I'm asking because I had 86 pg_clog files dated back > to mid-May. I got the impression from something Tom said that backups > should prune this directory. Perhaps my "impression" was wrong. Most > databases I've used in the past have gotten rid of the transaction > logs, etc, when a backup is done. The restore process used that last > backup and then applied the transaction logs to it. Once another > backup was completed the old transaction logs were no longer needed. > I'm trying to understand what happens "under the hood" so to speak. > What checkpoint_settings value are you referring to? Sorry. I had a brain/fingers disconnect. I meant the "checkpoint_segments" setting. Anyway, answers to a number of your questions regarding write-ahead logging may be found here: http://www.postgresql.org/docs/8.3/interactive/wal-configuration.html Cheers, Steve