Re: WAL archive on slave - Mailing list pgsql-general

From Albe Laurenz
Subject Re: WAL archive on slave
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17CA45E1@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: WAL archive on slave  (James Sewell <james.sewell@lisasoft.com>)
Responses Re: WAL archive on slave  (James Sewell <james.sewell@lisasoft.com>)
List pgsql-general
James Sewell wrote:
> If it is the the only way that I could achieve what I wanted would be to set
> wal_keep_segments high enough then they will all be archived on promotion?

Even if you set wal_keep_segments high I don't think that the replayed
WAL will be archived.

> I'm still not sure why they wouldn't be archived on the slave, seen as they show up in the directory?
> Is there a limitation I'm not thinking about here?

I guess that the idea is that a cluster will only archive the WAL it
generates.  Typically, the primary would archive these (if you don't archive
WAL on the primary, you're probably doing something wrong).
So this would only lead to duplicates.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Xlogdump compiling error : undefined reference to `ber_sockbuf_io_udp'
Next
From: Glyn Astill
Date:
Subject: Re: Better Connection Statistics