pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Alanoly Andrews <alanolya@invera.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: WAL archiving to two locations in warm standby
Date: Mon, 18 Jul 2011 08:49:54 -0500
Message-ID: <4E23F3B2020000250003F441@gw.wicourts.gov> (raw)
In-Reply-To: <09B23E7BF70425478C1330D893A722C604FE4E3A90@MailSVR.invera.com>
References: <09B23E7BF70425478C1330D893A722C604FE4E3A90@MailSVR.invera.com>

Alanoly Andrews <alanolya@invera.com> 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



view thread (3+ messages)

Message-ID: <4E23F3B2020000250003F441@gw.wicourts.gov>
Permalink:  ../4E23F3B2020000250003F441@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4E23F3B2020000250003F441@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, alanolya@invera.com
  Subject: Re: WAL archiving to two locations in warm standby
  In-Reply-To: <4E23F3B2020000250003F441@gw.wicourts.gov>
  References: <09B23E7BF70425478C1330D893A722C604FE4E3A90@MailSVR.invera.com> <4E23F3B2020000250003F441@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox