Hi, On 2022-02-16 19:46:26 -0800, Andres Freund wrote: > But right now I'm not seeing what prevents us from throwing a FATAL error > while holding an lwlock?
Nothing. But we register ShutdownPostgres() / ShutdownAuxiliaryProcess() to take care of that. I checked and walsenders do have ShutdownPostgres() and I don't see anything else that's missing it either. I'll run the test in a loop, perhaps I can reproduce... Greetings, Andres Freund