Fix shutdown sequence by sending signal to bgwriter
The bgwriter and checkpointer were one process in 8.4.  Because of this we may
have missed shutting down bgwriter during smart shutdown request.
@@ -2571,6 +2571,9 @@ pmdie(SIGNAL_ARGS)
/* and the autovac launcher too */
if (AutoVacPID != 0)
signal_child(AutoVacPID, SIGTERM);
+ /* and the bgwriter too */
+ if (BgWriterPID != 0)
+ signal_child(BgWriterPID, SIGTERM);
/* and the walwriter too */
if (WalWriterPID != 0)
signal_child(WalWriterPID, SIGTERM);
