Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daRcW-0008Uw-JR for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2017 19:05:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1daRcW-0000q2-0L for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2017 19:05:20 +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 1daRaz-0006JY-NY for pgsql-hackers@postgresql.org; Wed, 26 Jul 2017 19:03:45 +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 1daRaw-0001H7-Tl for pgsql-hackers@postgresql.org; Wed, 26 Jul 2017 19:03:44 +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 v6QJ3baZ020856; Wed, 26 Jul 2017 15:03:37 -0400 From: Tom Lane To: Andres Freund cc: Julien Rouhaud , pgsql-hackers Subject: Re: segfault in HEAD when too many nested functions call In-reply-to: <20170726012641.bmhfcp5ajpudihl6@alap3.anarazel.de> References: <12302.1500132157@sss.pgh.pa.us> <20170717072629.dqykbsot2irdob7c@alap3.anarazel.de> <20170717145710.cm32m4yn555hsoxd@alap3.anarazel.de> <6687.1500411223@sss.pgh.pa.us> <20170721114023.fj6cvr6og46yogei@alap3.anarazel.de> <19899.1500682674@sss.pgh.pa.us> <20170724161954.gbqswhukk7c4lygt@alap3.anarazel.de> <32759.1500917278@sss.pgh.pa.us> <20170726012641.bmhfcp5ajpudihl6@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 25 Jul 2017 18:26:41 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20854.1501095817.1@sss.pgh.pa.us> Date: Wed, 26 Jul 2017 15:03:37 -0400 Message-ID: <20855.1501095817@sss.pgh.pa.us> 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 Andres Freund writes: > I've moved the CHECK_FOR_INTERRUPTS() to the callsites. That > unsurprisingly ends up being somewhat verbose, and there's a bunch of > minor judgement calls where exactly to place them. While doing so I've > also added a few extra ones. Did this in a separate patch to make it > easier to review. Hm, that seems kinda backwards to me; I was envisioning the checks moving to the callees not the callers. I think it'd end up being about the same number of occurrences of CHECK_FOR_INTERRUPTS(), and there would be less of a judgment call about where to put them. 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