Re: [BUG] Take a long time to reach consistent after pg_rewind

Поиск
Список
Период
Сортировка
От cca5507
Тема Re: [BUG] Take a long time to reach consistent after pg_rewind
Дата
Msg-id tencent_DFAEC2CEDADF1400992FBCB9836ABB97D007@qq.com
обсуждение
Ответ на [BUG] Take a long time to reach consistent after pg_rewind  ("cca5507" <cca5507@qq.com>)
Список pgsql-hackers
> Possible fix:
>
> The pg_rewind use pg_current_wal_insert_lsn() to set the min recovery point, which calls
> GetXLogInsertRecPtr() and returns the latest wal insert pointer. Maybe we should use
> GetXLogInsertEndRecPtr() which returns the latest wal record end pointer.
>
> Thoughts?

Another solution:

If minRecoveryPoint is just after a xlog page header, we can move it to the begin of
the page. It's safe because we just skip the xlog page header. Do I miss something?

Attach a patch done like this.

--
Regards,
ChangAo Chen

Вложения

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