Re: Archiving done right - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Archiving done right
Date
Msg-id CAB7nPqTuh14sWZ-xhbvtT5y3sCMJQowpoXTPMBqx0hJz_wSMDQ@mail.gmail.com
Whole thread Raw
In response to Archiving done right  (David Steele <david@pgmasters.net>)
List pgsql-hackers
On Fri, Aug 21, 2015 at 11:25 PM, David Steele <david@pgmasters.net> wrote:
> In the current scheme, if the standby has not been archiving and then
> gets promoted, won't it try to push the older WAL segments because the
> .done files do not exist in archive_status?  Or does the archiver not
> cross timelines?

The segments are marked with .done on a standby once their reception
is finished at recovery.
If, by current, you mean >= 9.5, it is also mentioned in the docs that
when archive_mode = on and the standby is promoted, the
now-master-standby will not archive segments it did not generate
itself:
http://www.postgresql.org/docs/devel/static/warm-standby.html#CONTINUOUS-ARCHIVING-IN-STANDBY
-- 
Michael



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Performance improvement for joins where outer side is unique
Next
From: Amit Kapila
Date:
Subject: Re: checkpointer continuous flushing