1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00
Michael Paquier 35622f7d32 Stop bgworkers during fast shutdown with postmaster in startup phase
When a postmaster gets into its phase PM_STARTUP, it would start
background workers using BgWorkerStart_PostmasterStart mode immediately,
which would cause problems for a fast shutdown as the postmaster forgets
to send SIGTERM to already-started background workers.  With smart and
immediate shutdowns, this correctly happened, and fast shutdown is the
only mode missing the shot.

Author: Alexander Kukushkin
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/CAFh8B=mvnD8+DZUfzpi50DoaDfZRDfd7S=gwj5vU9GYn8UvHkA@mail.gmail.com
Backpatch-through: 9.5
2018-08-29 17:10:13 -07:00
..
2018-07-16 10:44:06 +02:00
2018-01-02 23:30:12 -05:00
2018-08-27 09:34:35 +12:00
2018-08-06 20:09:07 +02:00
2018-08-21 15:17:25 +09:00
2018-08-27 09:34:35 +12:00
2018-04-26 14:47:16 -04:00
2018-03-30 17:33:04 -07:00
2018-08-06 20:09:07 +02:00