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