Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DD4B41337B53 for ; Fri, 28 Jan 2011 11:50:25 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 02976-04 for ; Fri, 28 Jan 2011 15:50:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from acidenitrix.villemain.org (acidenitrix.villemain.org [91.121.90.165]) by mail.postgresql.org (Postfix) with ESMTP id 8895C1337B5E for ; Fri, 28 Jan 2011 11:50:18 -0400 (AST) Received: from 89-158-241-48.rev.dartybox.com ([89.158.241.48] helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PiqaV-0003xx-Nf; Fri, 28 Jan 2011 16:50:15 +0100 Received: by DimIMac.local (Postfix, from userid 501) id 7A02D185C875; Fri, 28 Jan 2011 16:50:08 +0100 (CET) From: Dimitri Fontaine To: "Kevin Grittner" Cc: "Colin Wilson" , "pgsql-admin\@postgresql.org" Subject: Re: Warm Standby looking for already applied log files Organization: 2ndQuadrant References: <4D3D5C520200002500039B11@gw.wicourts.gov> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Fri, 28 Jan 2011 16:50:08 +0100 In-Reply-To: <4D3D5C520200002500039B11@gw.wicourts.gov> (Kevin Grittner's message of "Mon, 24 Jan 2011 11:02:42 -0600") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/185 X-Sequence-Number: 36625 "Kevin Grittner" writes: > that script to not delete. Personally, I like to keep the last two > base backups and all the WAL files needed to restore from the > earlier of those forward. We have cleanup script that deletes the > oldest backup and WAL files only needed for recovery from it when we > receive a new one. PostgreSQL 9.0 now ships with such a script per default: http://www.postgresql.org/docs/9.0/interactive/pgarchivecleanup.html Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support