Re: Wal files - Question | Postgres 9.2 - Mailing list pgsql-general

From Patrick B
Subject Re: Wal files - Question | Postgres 9.2
Date
Msg-id CAJNY3itqbMG7wAh8cc7sGWo8qT=BMGo0fKFhAzrNA13OvKCwCA@mail.gmail.com
Whole thread Raw
In response to Re: Wal files - Question | Postgres 9.2  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Wal files - Question | Postgres 9.2  (Patrick B <patrickbakerbr@gmail.com>)
List pgsql-general


2016-11-29 16:36 GMT+13:00 David G. Johnston <david.g.johnston@gmail.com>:
On Mon, Nov 28, 2016 at 8:22 PM, Patrick B <patrickbakerbr@gmail.com> wrote:

Ho
​[w]
 is that even possible?? I don't understand!


"""​
 
If you use streaming replication without file-based continuous archiving, you have to set wal_keep_segments in the master to a value high enough to ensure that old WAL segments are not recycled too early, while the standby might still need them to catch up. If the standby falls behind too much, it needs to be reinitialized from a new base backup. If you set up a WAL archive that's accessible from the standby, wal_keep_segments is not required as the standby can always use the archive to catch up.
​"""

Basically you did just that when you destroyed the archive.  Apparently the master doesn't churn through WAL quickly enough to have had to discard the segments from the prior two hours.

David J.



That was really helpful! Thanks David!

Patrick 

pgsql-general by date:

Previous
From: Jerome Wagner
Date:
Subject: Re: Storing files: 2.3TBytes, 17M file count
Next
From: Berend Tober
Date:
Subject: Re: Invoice Table Design