Andres Freund <andres@anarazel.de> writes:
> ISTM that signal_child() should downgrade SIGQUIT to SIGTERM when sending to
> the process group. That way we'd maintain the current behaviour for postgres
> itself, but stop core-dumping archive/restore scripts (as well as other
> subprocesses that e.g. trusted PLs might create).
Yeah, I had been thinking along the same lines. One issue
is that that means the backend itself will get SIGQUIT and SIGTERM
in close succession. We need to make sure that that won't cause
problems. It might be prudent to think about what order to send
the two signals in.
regards, tom lane