pgsql: XidEpoch++ if wraparound during checkpoint.

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема pgsql: XidEpoch++ if wraparound during checkpoint.
Дата
Msg-id E1TfB4O-0008EM-OM@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
XidEpoch++ if wraparound during checkpoint.
If wal_level = hot_standby we update the checkpoint nextxid,
though in the case where a wraparound occurred half-way through
a checkpoint we would neglect updating the epoch also. Updating
the nextxid is arguably the wrong thing to do, but changing that
may introduce subtle bugs into hot standby startup, while updating
the value doesn't cause any known bugs yet. Minimal fix now to
HEAD and backbranches, wider fix later in HEAD.

Bug reported in #6291 by Daniel Farina and slightly differently in

Cause analysis and recommended fixes from Tom Lane and Andres Freund.

Applied patch is minimal version of Andres Freund's work.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/069aa395c0a2d4f73944f13d1bbc15d6106e2277

Modified Files
--------------
src/backend/access/transam/xlog.c |    9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: pgsql: XidEpoch++ if wraparound during checkpoint.
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: XidEpoch++ if wraparound during checkpoint.