Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bULZ0-0006p3-79 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 22:19:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bULYz-0002Md-QC for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 22:19:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bULXc-00068J-Dr for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 22:18:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bULXZ-00030S-MP for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 22:18:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u71MIRWJ018844; Mon, 1 Aug 2016 18:18:27 -0400 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: PostmasterContext survives into parallel workers!? In-reply-to: References: <14111.1470082717@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 01 Aug 2016 18:09:03 -0400" Date: Mon, 01 Aug 2016 18:18:27 -0400 Message-ID: <18843.1470089907@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > (Also vaguely on the list of things to clean up: can't we make it so > that bgworkers aren't launched from inside a signal handler? Blech.) So are other postmaster children, I believe. We could probably try to rewrite the postmaster to not do useful work in signal handlers, but rely on a lot of volatile flags set by the handlers. Not convinced this would be anything but a cosmetic improvement, though. And it could create new portability problems to replace any that it removed; we'd have to be *absolutely* certain that the main select() call would return with EINTR rather than resuming after any interrupt. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers