How should pg_standby get over the gap of timeline?

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема How should pg_standby get over the gap of timeline?
Дата
Msg-id 3f0b79eb0811200541p2b995e06p880485ebd37bf370@mail.gmail.com
обсуждение исходный текст
Ответы Re: How should pg_standby get over the gap of timeline?  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: How should pg_standby get over the gap of timeline?  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Hi,

In the current Synch Rep patch, the standby cannot catch up with the
primary which has a bigger timeline. So, whenever making the standby
catch up, a fresh base backup is required. This is obviously undesirable,
and I'd like to get rid of this restriction.

Postgres itself can recover up to a bigger timeline without a base
backup. The remaining problem is that pg_standby cannot get over the
gap of timeline. It continues waiting for the XLOG file with out-of-date
timeline, and redo doesn't progress.

My idea is that introducing a new option into pg_standby, which makes
the restoring fail if there is the XLOG file with the same logid and segid
even if the target file doesn't exist. Once failing to restore, the startup
process can switch the timeline and try to restore the XLOG file with
new timeline.

Is this idea reasonable? Any comments welcome!

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Visibility map, partial vacuums
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby (commit fest version - v5)