Re: Archiving done right

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Archiving done right
Дата
Msg-id CAB7nPqTuh14sWZ-xhbvtT5y3sCMJQowpoXTPMBqx0hJz_wSMDQ@mail.gmail.com
обсуждение исходный текст
Ответ на Archiving done right  (David Steele <david@pgmasters.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Performance improvement for joins where outer side is unique
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: checkpointer continuous flushing