Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1efgLg-0005gZ-MM for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Jan 2018 06:21:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efgLf-0001gA-Bq for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Jan 2018 06:21:51 +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 1efgLf-0001g1-34 for pgsql-bugs@lists.postgresql.org; Sun, 28 Jan 2018 06:21:51 +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.89) (envelope-from ) id 1efgLc-0000cb-Eb for pgsql-bugs@lists.postgresql.org; Sun, 28 Jan 2018 06:21:49 +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 w0S6Ljm2011850; Sun, 28 Jan 2018 01:21:45 -0500 From: Tom Lane To: Andrew Grossman cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15033: Segmentation fault running a query In-reply-to: References: <20180127050845.28812.58244@wrigleys.postgresql.org> <17399.1517083207@sss.pgh.pa.us> <20359.1517090266@sss.pgh.pa.us> Comments: In-reply-to Andrew Grossman message dated "Sun, 28 Jan 2018 04:38:36 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11848.1517120505.1@sss.pgh.pa.us> Date: Sun, 28 Jan 2018 01:21:45 -0500 Message-ID: <11849.1517120505@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Grossman writes: > It looks like the same crash: Yeah, I agree, create_plan_recurse is at fault there. Will fix it, thanks for confirming! Of course, the "fix" will just result in producing a "stack overflowed" error instead of dumping core. There's still the question of why this case worked for you before and doesn't now. Seemingly, current code needs more stack to process this query than 9.5 did. Is it significantly more, or were you just unlucky enough to overrun the limit when you'd not quite done so before? And if it is significantly more, is there anything we can reasonably do about that? These questions remain unclear at this point. regards, tom lane