Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUMsJ-0003am-QX for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 23:43:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUMsJ-0002EX-5w for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 23:43:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUMqw-0000g4-TN for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 23:42:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUMqu-0002Fo-Cf for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 23:42:33 +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 u71NgS9o022057; Mon, 1 Aug 2016 19:42:28 -0400 From: Tom Lane To: Thomas Munro cc: Andres Freund , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: PostmasterContext survives into parallel workers!? In-reply-to: References: <14111.1470082717@sss.pgh.pa.us> <20160801221829.kfa7hzqlzt47mwsb@alap3.anarazel.de> <19232.1470090524@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 02 Aug 2016 11:27:25 +1200" Date: Mon, 01 Aug 2016 19:42:28 -0400 Message-ID: <22056.1470094948@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 Thomas Munro writes: > I found this apparently unresolved bug report about glibc fork() > inside a signal handler deadlocking: > https://sourceware.org/bugzilla/show_bug.cgi?id=4737 > I wonder if that could bite postmaster. I seriously doubt it. The key thing about the postmaster is that it runs with signals blocked practically everywhere. So we're not taking risks of a signal handler interrupting, say, malloc() (which seemed to be the core of at least the first example given in that report). This is what makes me dubious that getting rid of doing work in the postmaster's signal handlers is really going to add any noticeable increment of safety. It might make the code look cleaner, but I'm afraid it's going to be a lot of churn for not much gain. 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