pgsql: Don't set ThisTimeLineID in checkpointer & bgwriter during recov

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Don't set ThisTimeLineID in checkpointer & bgwriter during recov
Дата
Msg-id E1TlfRM-0000h8-IW@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don't set ThisTimeLineID in checkpointer & bgwriter during recovery.

We used to set it to the current recovery target timeline, but the recovery
target timeline can change during recovery, leaving ThisTimeLineID at an
old value. That seems worse than always leaving it at zero to begin with.

AFAICS there was no good reason to set it in the first place. ThisTimeLineID
is not needed in checkpointer or bgwriter process, until it's time to write
the end-of-recovery checkpoint, and at that point ThisTimeLineID is updated
anyway.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1a11d4609efaae39d9b7472fb965bca1c0aeda01

Modified Files
--------------
src/backend/access/transam/xlog.c     |    7 ++++++-
src/backend/postmaster/bgwriter.c     |    6 ------
src/backend/postmaster/checkpointer.c |    6 ------
3 files changed, 6 insertions(+), 13 deletions(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Add pg_upgrade comment about mismatch error
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Follow TLI of last replayed record, not recovery target TLI, in