Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 41D86B5DBD6 for ; Wed, 10 Aug 2011 14:00:21 -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 99531-07 for ; Wed, 10 Aug 2011 17:00:15 +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 00A34B5DBCA for ; Wed, 10 Aug 2011 14:00:14 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 10 Aug 2011 12:00:14 -0500 Message-Id: <4E4272C7020000250003FD48@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 10 Aug 2011 12:00:07 -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> <1312995184.42492.YahooMailNeo@web120019.mail.ne1.yahoo.com> In-Reply-To: <1312995184.42492.YahooMailNeo@web120019.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/83 X-Sequence-Number: 38070 A J wrote: > Also couple of additional related question: > 2. Am I correct in my assumption that if for some reason archive > is not cleaned up and runs out of space, the WALs will accumulate > in pg_xlog directory on the primary. If pg_xlog was to then run > out of space, Primary server will stop accepting new writes and > fail ? That sounds correct to me. I've never seen it in practice, though; we would need to ignore alerts from our monitoring for quite some time before it got to that point. > 3. If my standbys are in different datacenter, what is the > suggested location of the archive directory ? Is it recommended to > have it local in the data center of the primary server or somehow > have it over in the remote data center. In our shop we have found it advantageous to immediately write it locally, and then use rsync (through ssh and a daemon) to bring the remote site(s) into sync. -Kevin