Re: recovery getting interrupted is not so unusual as it used to be

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: recovery getting interrupted is not so unusual as it used to be
Дата
Msg-id AANLkTikDWGNN6ilyVwTYt-ODKleasyOdcFssIlE-MSWp@mail.gmail.com
обсуждение исходный текст
Ответ на Re: recovery getting interrupted is not so unusual as it used to be  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: recovery getting interrupted is not so unusual as it used to be  (Fujii Masao <masao.fujii@gmail.com>)
Re: recovery getting interrupted is not so unusual as it used to be  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Sat, May 15, 2010 at 3:20 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> Hmm, OK, I think that makes sense.  Would you care to propose a patch?

Yep. Here is the patch.

This patch distinguishes normal shutdown from unexpected exit, while the
server is in recovery. That is, when smart or fast shutdown is requested
during recovery, the bgwriter sets the ControlFile->state to new-introduced
DB_SHUTDOWNED_IN_RECOVERY state.

When recovery starts from the DB_SHUTDOWNED_IN_RECOVERY state, the startup
process emits

    LOG:  database system was shut down in recovery at 2010-05-12 20:35:24 EDT

instead of

    LOG:  database system was interrupted while in recovery at log
time 2010-05-12 20:35:24 EDT
    HINT:  If this has occurred more than once some data might be
corrupted and you might need to choose an earlier recovery target.

Regards,

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

Вложения

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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Stefan's bug (was: max_standby_delay considered harmful)
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Keepalive for max_standby_delay