Movatterモバイル変換


[0]ホーム

URL:


Quick Links

Postmaster doesn't send SIGTERM to bgworker during fast shutdown when pmState == PM_STARTUP

From:Alexander Kukushkin <cyberdemn(at)gmail(dot)com>
To:PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject:Postmaster doesn't send SIGTERM to bgworker during fast shutdown when pmState == PM_STARTUP
Date:2018-08-26 16:00:23
Message-ID:CAFh8B=mvnD8+DZUfzpi50DoaDfZRDfd7S=gwj5vU9GYn8UvHkA@mail.gmail.com
Views:Whole Thread |Raw Message |Download mbox |Resend email
Thread:
Lists:pgsql-hackers

Hello hackers,

it is possible to start bgworker with bgw_start_time =
BgWorkerStart_PostmasterStart, which will be started immediately after
postmaster.

But if you try to do a fast shutdown while postmaster still in the
pmState == PM_STARTUP, bgworker will never get SIGTERM and postmaster
will wait forever.
At the same time, if you do immediate or smart shutdown, it works fine.

The problem is in the pmdie function. Proposed fix attached.

Regards,
--
Alexander Kukushkin

AttachmentContent-TypeSize
fast_shutdown_bgworker.patchtext/x-patch597 bytes

Responses

Browse pgsql-hackers by date

 FromDateSubject
Next MessageTom Lane2018-08-26 17:08:51Multiple reporting of syslogger errors
Previous MessageDavid Rowley2018-08-26 11:42:48Small patch to remove some duplicate words in comments

[8]ページ先頭

©2009-2026 Movatter.jp