Re: WAL log archival on standby

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: James Sewell <james(dot)sewell(at)lisasoft(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: WAL log archival on standby
Date: 2015-06-19 05:45:27
Message-ID: CAB7nPqTyEh0B83fwqFGw2sK1HrLTJTuNODXE_mTcqgVP5y6oBw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 19, 2015 at 2:38 PM, James Sewell <james(dot)sewell(at)lisasoft(dot)com>
wrote:

> Hey All,
>
> Is it possible to create WAL archive files on standby servers when using
> streaming replication?
>

Yes and no, standbys do not archive WAL in ~9.4, but you could use
archive_mode = 'always' with the upcoming 9.5.

I know I can use archive_command or pg_receivexlog - but these will both
> result in me sending information to the standby servers which has already
> been sent via standard streaming replication. This would result in a
> doubling of my network traffic.
>
Ideally I'd prefer to conserve this bandwidth and write the files to a
> local archive on any active standby.
>

Both methods you mentioned are the way to go for now I am afraid, or you
wait for 9.5.
Regards,
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2015-06-19 08:19:04 Re: valgrind
Previous Message James Sewell 2015-06-19 05:38:14 WAL log archival on standby