Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 75510636003 for ; Thu, 11 Mar 2010 14:55:28 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48058-01-5 for ; Thu, 11 Mar 2010 18:55:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 510CA636801 for ; Thu, 11 Mar 2010 14:44:44 -0400 (AST) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1NpnNA-00030A-Np; Thu, 11 Mar 2010 10:44:42 -0800 Message-ID: <4B993A13.9070506@agliodbs.com> Date: Thu, 11 Mar 2010 10:44:35 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Chander Ganesan CC: pgsql-testers@postgresql.org Subject: Re: Documentation/Cleanup Command for Hot Standby References: <4B98EDF9.1020800@otg-nc.com> In-Reply-To: <4B98EDF9.1020800@otg-nc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/7 X-Sequence-Number: 56 On 3/11/10 5:19 AM, Chander Ganesan wrote: > Hi, > > I've been reviewing HS/SR and have a couple of thoughts/notes: > > - The recovery_done_command is not documented (that I can find, at > least) in the documentation. > - There is (presently) no way to have PostgreSQL's standby node "clean > up" unneeded WAL files (the %r parameter for archive_command). I saw > some talk about adding a 'archive_cleanup_command' to recovery.conf, but > that doesn't seem to work (yet). I think this should be listed as a > to-do item on the wiki for this application (or if it was added after > the alpha4 release, noted as a completed item.) Without a way to > cleanup archives, the wal archive could end up getting very large, and > even fill up the file system it is on... Yes, a lot of this is going to be very manual for 9.0. I'm working on documentation on how you can decide what to delete via cron job. --Josh Berkus