Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWPTG-0003iX-Rw for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Jul 2017 15:59:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dWPTF-0006vQ-W7 for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Jul 2017 15:59:06 +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 1dWPRk-0004FS-C0 for pgsql-hackers@postgresql.org; Sat, 15 Jul 2017 15:57:32 +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 1dWPRh-0007h3-TO for pgsql-hackers@postgresql.org; Sat, 15 Jul 2017 15:57: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 v6FFvPWP013695; Sat, 15 Jul 2017 11:57:25 -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: <12302.1500132157@sss.pgh.pa.us> References: <12302.1500132157@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 15 Jul 2017 11:22:37 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13693.1500134244.1@sss.pgh.pa.us> Date: Sat, 15 Jul 2017 11:57:24 -0400 Message-ID: <13694.1500134244@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 I wrote: > I still think that we really need to add a check in ExecProcNode(). Actually ... to what extent could a check in ExecInitNode() substitute for that? Or do we need both? How about ExecEndNode() and ExecReScan()? You could argue that the latter two tree traversals are unlikely either to consume more stack than ExecInitNode() or to be called from a more deeply nested point. So maybe they're okay. But I'm not sure I believe that initialization stack needs always exceed execution stack needs, though sometimes they might. 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