Re: using an end-of-recovery record in all cases

Поиск
Список
Период
Сортировка
От Amul Sul
Тема Re: using an end-of-recovery record in all cases
Дата
Msg-id CAAJ_b94RidhUAZT+KUCRsC6t5uKmGWBUPR+O95F8eEw9UVfD2g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: using an end-of-recovery record in all cases  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: using an end-of-recovery record in all cases  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers


On Tue, 5 Oct 2021 at 9:04 PM, Robert Haas <robertmhaas@gmail.com> wrote:
On Tue, Oct 5, 2021 at 7:44 AM Amul Sul <sulamul@gmail.com> wrote:
> I was trying to understand the v1 patch and found that at the end
> RequestCheckpoint() is called unconditionally, I think that should
> have been called if REDO had performed,

You're right. But I don't think we need an extra variable like this,
right? We can just test InRecovery?

No, InRecovery flag get cleared before this point. I think, we can use lastReplayedEndRecPtr what you have suggested in other thread.

Regards,
Amul
--
Regards,
Amul Sul
EDB: http://www.enterprisedb.com

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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: Role Self-Administration
Следующее
От: Robert Haas
Дата:
Сообщение: Re: BUG #17212: pg_amcheck fails on checking temporary relations