Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUgWS-00082Y-NJ for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Aug 2016 20:42:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUgWS-00051H-9h for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Aug 2016 20:42:44 +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 1bUgWQ-0004zw-Io for pgsql-hackers@postgresql.org; Tue, 02 Aug 2016 20:42:42 +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 1bUgWO-0000Gu-5M for pgsql-hackers@postgresql.org; Tue, 02 Aug 2016 20:42:41 +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 u72Kgc6L020301; Tue, 2 Aug 2016 16:42:38 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@postgresql.org Subject: Re: HandleParallelMessages contains CHECK_FOR_INTERRUPTS? In-reply-to: <14869.1470083848@sss.pgh.pa.us> References: <20160801202058.GA529842@alvherre.pgsql> <14869.1470083848@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 01 Aug 2016 16:37:28 -0400" Date: Tue, 02 Aug 2016 16:42:38 -0400 Message-ID: <20300.1470170558@sss.pgh.pa.us> X-Pg-Spam-Score: -3.1 (---) 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 I wrote: > Alvaro Herrera writes: >> I notice you just removed the CHECK_FOR_INTERRUPTS in >> HandleParallelMessages(). Did you notice that HandleParallelMessages >> calls shm_mq_receive(), which calls shm_mq_receive_bytes(), which >> contains a CHECK_FOR_INTERRUPTS() call? After study, I believe that that CHECK_FOR_INTERRUPTS() is unreachable given that HandleParallelMessages passes nowait = true. But it's not unlikely that future changes in shm_mq.c might introduce such calls that are reachable. > I wonder whether we should make use of HOLD_INTERRUPTS/RESUME_INTERRUPTS > to avoid the recursion scenario here. I concluded that that would be good future-proofing, whether or not it's strictly necessary today, so I pushed it. 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