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 1lUO6Z-0004Sf-Np for pgsql-committers@arkaria.postgresql.org; Thu, 08 Apr 2021 06:25:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUO6Y-0007PM-Hd for pgsql-committers@arkaria.postgresql.org; Thu, 08 Apr 2021 06:25:26 +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 1lUO6X-0007P3-Lq for pgsql-committers@lists.postgresql.org; Thu, 08 Apr 2021 06:25:26 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUO6T-00028b-Ru for pgsql-committers@lists.postgresql.org; Thu, 08 Apr 2021 06:25:25 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C1B765C00CF; Thu, 8 Apr 2021 02:25:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 08 Apr 2021 02:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Z PV5QdpcaMOYbUcpU4hTQpuydoDZMn703+pbBM3tLIQ=; b=hWOyDhilW5jBehGaA RLOr14AIpe/dyB3Zh8sgiyVEJofoUoMq+ABRXJdpK7LJFElKoLXIxghNGM5tc4QJ AqAsp/2uclCDaHmW6Ht+sM1lrULT+i/PSTjgsoSBhdVhEvvePzjUG5nltuaf6CRU nzn3Wf1GL4+mabDoQzt/KhN/Zp67uPvTWaxe52ETMeSwoN8fA6yuDrH+44BwwqVa 1JRbFdQv0CgfUhGFa3SW7vD9TDq8/5JuLtbXnEh1JHgg+bIOq1RgrxjwcRxMblmM 4ueb7RVRQ3uez9yYkeHPdP6jb9Yevsj6ezVPgfbxzMvzs6Ch6q4TjIb0Eb/Du0xF sdRWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ZPV5QdpcaMOYbUcpU4hTQpuydoDZMn703+pbBM3tL IQ=; b=dhYPYGsrBQzQZit8sgpfLLJ7a09OBbFh8sgUsR5xlOOW+IXdi8eF4xi3v eLJNrqNpeQX83zVYSHorU92Ndv92SsUXsU7cDiUWJmXZQQhopuFai/gK3qJcsmhO gppyDgC98rxp4c0MJ23VZXAMn5QewpvM5ylTxJAvEKErfhSapUuIBRT2/6e/sxZ2 jicPW32SGu+m9AyLuS8W/pQIRd0cB+tJUZxRlcn5nbIs1gnKr/ZWEinsF20GqqXm VODD8kCUiSQakcz25GQGJfCK27mxbjjpLuFrqEHf4m5PDLK73O1N2sk1KXyC+Ozj G9DGorDV086LoRwY3ma4ASJ5vPNyw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejkedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh eqnecuggftrfgrthhtvghrnhepkeeghffggfegudfgvedvgfdvudfhjeeijeelvddvffet ueevueeuheduvdefkeegnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepleefrddvtddvrddvheefrddugeefnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Received: from laptop206oxuk.local (p5dcafd8f.dip0.t-ipconnect.de [93.202.253.143]) by mail.messagingengine.com (Postfix) with ESMTPA id B58AE240068; Thu, 8 Apr 2021 02:25:18 -0400 (EDT) Subject: Re: pgsql: SQL-standard function body To: Tom Lane , Andres Freund Cc: pgsql-committers@lists.postgresql.org References: <20210407225806.majgznh4lk34hjvu@alap3.anarazel.de> <1730972.1617836766@sss.pgh.pa.us> From: Peter Eisentraut Message-ID: <93cd20a5-1d4a-6cc9-a70a-41a7c8c4d80a@eisentraut.org> Date: Thu, 8 Apr 2021 08:25:16 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <1730972.1617836766@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.04.21 01:06, Tom Lane wrote: > Andres Freund writes: >> On 2021-04-07 19:53:35 +0000, Peter Eisentraut wrote: >>> SQL-standard function body > >> This is turning the BF red: >> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rhinoceros&dt=2021-04-07%2022%3A52%3A19 >> Might be force_parallel_mode=regress related. > > Yeah. On my machine, it's fine without force_parallel_mode and > crashes with that. Looks like query text is not getting passed > to the parallel worker in some cases. There does not appear to be any indication in CreateQueryDesc() or for es_sourceText that the query source text needs to be not NULL (unlike PortalDefineQuery() for example). If we want that to be the case, an assert in CreateQueryDesc() would be a straightforward way to catch this. But for example code in CreateExecutorState() and executor_errposition() is prepared to have es_sourceText be NULL, so relative to that, the fix that Andres put into ExecInitParallelPlan() to handle that as well seems appropriate.