Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 13F06B5DC5A for ; Wed, 10 Aug 2011 13:53:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 85711-06 for ; Wed, 10 Aug 2011 16:53:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id C0841B5DC48 for ; Wed, 10 Aug 2011 13:53:17 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 10 Aug 2011 11:53:17 -0500 Message-Id: <4E427129020000250003FD43@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 10 Aug 2011 11:53:13 -0500 From: "Kevin Grittner" To: "PG Admin" ,"A J" Subject: Re: Cleanup of same archive used by multiple standbys References: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com> In-Reply-To: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.711 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.811 X-Spam-Level: X-Archive-Number: 201108/82 X-Sequence-Number: 38069 A J wrote: > What is the suggested technique for cleaning up an archive > location shared by multiple standbys. Looks like pg_archivecleanup > cannot be used as %r refers to last restartpoint of only a single > standby server. Do I need to create a custom script that somehow > determines the latest common restartpoint of ALL the standbys and > then manually run pg_archivecleanup with that value ? I seem to remember that in a previous discussion of this the best idea seemed to be to create a hard link to the file for each standby, such that when the last standby cleans up the file, it is actually deleted. -Kevin