Re: pg_prewarm bgworker could break fast shutdown

2020-10-28 Thread Tom Lane
Alexander Kukushkin writes: > I the fast shutdown was initiated before pg_prewarm managed to load > buffers from the dump (and start the main loop), the pg_prewarm > bgworker process never exits on SIGTERM and effectively preventing the > clean shutdown of the cluster. I might be wrong about this

pg_prewarm bgworker could break fast shutdown

2020-10-28 Thread Alexander Kukushkin
Hello, I the fast shutdown was initiated before pg_prewarm managed to load buffers from the dump (and start the main loop), the pg_prewarm bgworker process never exits on SIGTERM and effectively preventing the clean shutdown of the cluster. This problem bite me a few times, but yesterday I manage