Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B99B3B5DBCC for ; Mon, 18 Jul 2011 10:50:10 -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 13935-02 for ; Mon, 18 Jul 2011 13:50:04 +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 7CCBCB5DBC8 for ; Mon, 18 Jul 2011 10:50:04 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 18 Jul 2011 08:50:03 -0500 Message-Id: <4E23F3B2020000250003F441@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 18 Jul 2011 08:49:54 -0500 From: "Kevin Grittner" To: "Alanoly Andrews" , "'pgsql-admin@postgresql.org'" Subject: Re: WAL archiving to two locations in warm standby References: <09B23E7BF70425478C1330D893A722C604FE4E3A90@MailSVR.invera.com> In-Reply-To: <09B23E7BF70425478C1330D893A722C604FE4E3A90@MailSVR.invera.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=-3.013 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.113 X-Spam-Level: X-Archive-Number: 201107/131 X-Sequence-Number: 37910 Alanoly Andrews wrote: > What I would like to tell the postgres engine on the primary is to > be "satisfied" if the archiving to the primary location succeeded > and to NOT re-try if the failure was in the remote copy > > Is there a way to achive this through the "archive_command" or > otherwise? archive_command can call a script, which can be arbitrarily complex, so sure -- you can do whatever you want within it. That said, why not copy the archive to the local directory, and then have an rsync process on the other machine (going through a remote daemon) try to pull new files over once per minute? That works well for us. -Kevin