Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKnfY-0006Bw-CK for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2020 18:37:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKnf0-0001Ll-Ay for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2020 18:36:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKnf0-0001Le-3m for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2020 18:36:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKnes-000308-RP for pgsql-hackers@postgresql.org; Sat, 04 Apr 2020 18:36: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 034IaQ47003302; Sat, 4 Apr 2020 14:36:26 -0400 From: Tom Lane To: Robert Haas cc: Fabien COELHO , Alvaro Herrera , David Steele , Andres Freund , Noah Misch , Stephen Frost , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C , Thomas Munro Subject: Re: backup manifests and contemporaneous buildfarm failures In-reply-to: References: <20200403205412.GA8279@alvherre.pgsql> <22394.1585951968@sss.pgh.pa.us> <3419.1585965125@sss.pgh.pa.us> <11691.1586012252@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Sat, 04 Apr 2020 13:05:22 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3300.1586025386.1@sss.pgh.pa.us> Date: Sat, 04 Apr 2020 14:36:26 -0400 Message-ID: <3301.1586025386@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Sat, Apr 4, 2020 at 10:57 AM Tom Lane wrote: >> What is odd is that >> (AFAIR) we've never seen this before. Maybe somebody recently added >> an error cursor callback in a place that didn't have it before, and >> is involved in SQL-function processing? None of the commits leading >> up to the earlier failure look promising for that, though. > The relevant range of commits (e8b1774fc2 to a7b9d24e4e) includes an > ereport change (bda6dedbea) and a couple of "simple expression" > changes (8f59f6b9c0, fbc7a71608) but I don't know exactly why they > would have caused this. When I first noticed hyrax's failure, some days ago, I immediately thought of the "simple expression" patch. But that should not have affected SQL-function processing in any way: the bulk of the changes were in plpgsql, and even the changes in plancache could not be relevant, because functions.c does not use the plancache. As for ereport, you'd think that that would only matter once you were already doing an ereport. The point at which the stack overflow check triggers should be in normal code, not error recovery. > It seems at least possible, though, that > changing the return type of functions involved in error reporting > would slightly change the amount of stack space used; Right, but if it's down to that sort of phase-of-the-moon codegen difference, you'd think this failure would have been coming and going for years. I still suppose that some fairly recent change must be contributing to this, but haven't had time to investigate. > Other than experimenting on > that machine, I'm not sure how we could really determine the relevant > factors here. We don't have a lot of CCA buildfarm machines, so I'm suspecting that it's probably not that hard to repro if you build with CCA. regards, tom lane