Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XmVDg-0003Gf-UY for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Nov 2014 22:07:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XmVDg-0007Qn-9S for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Nov 2014 22:07:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XmVDf-0007Qf-Na for pgsql-bugs@postgresql.org; Thu, 06 Nov 2014 22:07:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XmVDc-00029A-Ma for pgsql-bugs@postgresql.org; Thu, 06 Nov 2014 22:07:54 +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 sA6M753j003368; Thu, 6 Nov 2014 17:07:05 -0500 From: Tom Lane To: "'Andres Freund'" cc: Paragon Corporation , "'Robert Haas'" , pgsql-bugs@postgresql.org Subject: Re: BUG #11902: PostgreSQL 9.5 crashes on alter table in function In-reply-to: <20141106212412.GB12525@awork2.anarazel.de> References: <20141106180115.26930.84739@wrigleys.postgresql.org> <20141106180617.GE12193@alap3.anarazel.de> <9D18BF962F7141868C3DF332C22F4C8B@O> <16197.1415308515@sss.pgh.pa.us> <20141106212412.GB12525@awork2.anarazel.de> Comments: In-reply-to "'Andres Freund'" message dated "Thu, 06 Nov 2014 22:24:12 +0100" Date: Thu, 06 Nov 2014 17:07:05 -0500 Message-ID: <3367.1415311625@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "'Andres Freund'" writes: > On 2014-11-06 16:15:15 -0500, Tom Lane wrote: >> No, the given test case crashes HEAD just fine. Robert seems to have >> changed the invariants around the trigger query stack in some inconsistent >> fashion. > I think it's just a missing > if (depth < afterTriggers.maxquerydepth) > continue; > or similar in AfterTriggerPendingOnRel, inside the second loop. No such test was required before. If one's needed now, then I'd wonder what other places have new bugs of the same ilk. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs