Simon Riggs <simon(at)2ndquadrant(dot)com> writes: > If there are no objections, I will add an extra condition to the wait, That's not the correct fix. The problem is that the archiver is getting killed in the first place. What the postmaster should do instead is waken it after the shutdown process terminates. regards, tom lane