Re: Postmaster doesn't send SIGTERM to bgworker during fast shutdownwhen pmState == PM_STARTUP - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Postmaster doesn't send SIGTERM to bgworker during fast shutdownwhen pmState == PM_STARTUP
Date
Msg-id 20180830001352.GF5903@paquier.xyz
Whole thread Raw
In response to Re: Postmaster doesn't send SIGTERM to bgworker during fast shutdownwhen pmState == PM_STARTUP  (Alexander Kukushkin <cyberdemn@gmail.com>)
List pgsql-hackers
On Wed, Aug 29, 2018 at 09:09:08AM +0200, Alexander Kukushkin wrote:
> Yeah, good catch, it starts checkpointer, bgwriter and in some cases
> even archiver processes (when archive_mode=always) while pmState is
> still equaled PM_START.
> Please find attached the new version of the fix.

Thanks, pushed and back-patched down to 9.5 which is where the bug has
been introduced as before that SignalUnconnectedWorkers() was doing all
the work.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Use C99 designated initializers for some structs
Next
From: Chapman Flack
Date:
Subject: Re: Use C99 designated initializers for some structs