Re: BUG #5011: Standby recovery unable to follow timeline change

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5011: Standby recovery unable to follow timeline change
Дата
Msg-id 11243.1251293781@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5011: Standby recovery unable to follow timeline change  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: BUG #5011: Standby recovery unable to follow timeline change  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Our last-minute changes in 8.4 to allow checkpoint record to be created,
> while forbidding other WAL insertions, missed that CreateCheckPoint()
> calls AdvanceXLInsertBuffer() which requires a valid ThisTimeLineID to
> be set. We need to initialize ThisTimeLineID before we call
> AdvanceXLInsertBuffer().

Ah-hah ...

> Attached is a straightforward fix which initializes ThisTimeLineID
> before the AdvanceXLInsertBuffer() call. Barring objections, I'll commit
>  that.

... but this solution is astonishingly ugly.  I think we should move up
the LocalSetXLogInsertAllowed call, instead.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5008: Server Startup Problem - When server is configured for SSL
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #5008: Server Startup Problem - When server is configured for SSL