Immediate shutdown during recovery

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Immediate shutdown during recovery
Дата
Msg-id 3f0b79eb0811280156s78a3730en73aca49b6e95d3cb@mail.gmail.com
обсуждение исходный текст
Ответы Re: Immediate shutdown during recovery  ("Fujii Masao" <masao.fujii@gmail.com>)
Список pgsql-hackers
Hi,

The immediate shutdown (pg_ctl -m i stop) might not be able to
kill the startup process during archive recovery. It's because
the startup process calls system() which ignores SIGQUIT for
executing the restore_command. So, only the startup process
might survive the immediate shutdown and continue redoing up
to the end. Is this desirable behavior? This sounds odd for me.

In order to prevent the surviving, I think that the startup process
should check whether postmaster is still alive periodically. This
idea is already adopted in the archiver process which also calls
system() for executing archive_command.

What is your opinion?

Regards,

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


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

Предыдущее
От: tomas@tuxteam.de
Дата:
Сообщение: Re: Simple postgresql.conf wizard
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Review: Hot standby