Обсуждение: pgsql: Force archive_status of .done for xlogs created by dearchival/re

Поиск
Список
Период
Сортировка

pgsql: Force archive_status of .done for xlogs created by dearchival/re

От
Simon Riggs
Дата:
Force archive_status of .done for xlogs created by dearchival/replication.
This prevents spurious attempts to archive xlog files after promotion of
standby, a bug introduced by cascading replication patch in 9.2.

Fujii Masao, simplified and extended to cover streaming by Simon Riggs

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6f4b8a4f4f7a2d683ff79ab59d3693714b965e3d

Modified Files
--------------
src/backend/access/transam/xlog.c     |   59 +++++++++++++++++++++++++++++++++
src/backend/replication/walreceiver.c |   16 ++++++++-
src/include/access/xlog_internal.h    |    5 +++
3 files changed, 78 insertions(+), 2 deletions(-)