Re: WAL archiving to two locations in warm standby

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: WAL archiving to two locations in warm standby
Дата
Msg-id 4E23F3B2020000250003F441@gw.wicourts.gov
обсуждение исходный текст
Ответ на WAL archiving to two locations in warm standby  (Alanoly Andrews <alanolya@invera.com>)
Список 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 по дате отправления:

Предыдущее
От: Raghavendra
Дата:
Сообщение: Re: WAL archiving to two locations in warm standby
Следующее
От: "Kyle R. Burton"
Дата:
Сообщение: 9.0 Replication and archive cleanup