]> granicus.if.org Git - postgresql/commit
Make postmaster restart archiver soon after it dies, even during recovery.
authorFujii Masao <fujii@postgresql.org>
Fri, 12 Jun 2015 14:11:51 +0000 (23:11 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 12 Jun 2015 14:11:51 +0000 (23:11 +0900)
commitb5fe62038f49f92c4a4f189c7cdacf3739effcdc
tree49ef6608e9cb9ae1bb677ff897d90fa1c9527959
parent96ad72d1c00fa6526eb4d5e9c2a747b44752b4ee
Make postmaster restart archiver soon after it dies, even during recovery.

After the archiver dies, postmaster tries to start a new one immediately.
But previously this could happen only while server was running normally
even though archiving was enabled always (i.e., archive_mode was set to
always). So the archiver running during recovery could not restart soon
after it died. This is an oversight in commit ffd3774.

This commit changes reaper(), postmaster's signal handler to cleanup
after a child process dies, so that it tries to a new archiver even during
recovery if necessary.

Patch by me. Review by Alvaro Herrera.
src/backend/postmaster/postmaster.c
src/include/access/xlog.h