Re: WAL archiving to two locations in warm standby - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: WAL archiving to two locations in warm standby
Date
Msg-id 4E23F3B2020000250003F441@gw.wicourts.gov
Whole thread Raw
In response to WAL archiving to two locations in warm standby  (Alanoly Andrews <alanolya@invera.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Raghavendra
Date:
Subject: Re: WAL archiving to two locations in warm standby
Next
From: "Kyle R. Burton"
Date:
Subject: 9.0 Replication and archive cleanup