On 2020-Mar-31, Alvaro Herrera wrote:
> I think we should kill(SIGTERM) the walsender using the slot (slot->active_pid),
> then acquire the slot and set it to some state indicating that it is now
> useless, no longer reserving WAL; so when the walsender is restarted, it
> will find the slot cannot be used any longer.
Ah, I see ioguix already pointed this out and the response was that the
walsender stops by itself. Hmm. I suppose this works too ... it seems
a bit fragile, but maybe I'm too sensitive. Do we have other opinions
on this point?
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services