Re: [GENERAL] WAL log archival on standby

2015-06-20 Thread Sameer Kumar
On Fri, 19 Jun 2015 13:46 Michael Paquier  wrote:

On Fri, Jun 19, 2015 at 2:38 PM, James Sewell 
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.

 I have not tried it yet but should be possible to use pg_receivexlog from
the standby. If I can use standby server to create a streaming replica and
with pg_basebackup it should be possible to stream wal for archiving too.

Regards
Sameer


Re: [GENERAL] WAL log archival on standby

2015-06-18 Thread Michael Paquier
On Fri, Jun 19, 2015 at 2:38 PM, James Sewell 
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


[GENERAL] WAL log archival on standby

2015-06-18 Thread James Sewell
Hey All,

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

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.

Cheers,

James Sewell,
Solutions Architect
__


 Level 2, 50 Queen St, Melbourne VIC 3000

*P *(+61) 3 8370 8000  *W* www.lisasoft.com  *F *(+61) 3 8370 8099

-- 


--
The contents of this email are confidential and may be subject to legal or 
professional privilege and copyright. No representation is made that this 
email is free of viruses or other defects. If you have received this 
communication in error, you may not copy or distribute any part of it or 
otherwise disclose its contents to anyone. Please advise the sender of your 
incorrect receipt of this correspondence.