Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCrYs-0002ch-2t for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jun 2016 16:51:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCrYr-0008Gh-LI for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jun 2016 16:51:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCrYr-0008Gb-7l for pgsql-hackers@postgresql.org; Tue, 14 Jun 2016 16:51:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCrYn-0000mQ-5v for pgsql-hackers@postgresql.org; Tue, 14 Jun 2016 16:51:32 +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 u5EGpPME019904; Tue, 14 Jun 2016 12:51:25 -0400 From: Tom Lane To: Robert Haas cc: Peter Eisentraut , Noah Misch , =?UTF-8?B?Q2zDqW1lbnQgUHLDqXZvc3Q=?= , PostgreSQL-development Subject: Re: parallel.c is not marked as test covered In-reply-to: References: <20160509012055.GA433959@alvherre.pgsql> <20160509145023.tkdpyygfxu56ngzz@alap3.anarazel.de> <20160607052716.GA766951@tornado.leadboat.com> <20160608034342.GA804701@tornado.leadboat.com> <58cd047c-deba-0863-b279-56b931237176@2ndquadrant.com> Comments: In-reply-to Robert Haas message dated "Tue, 14 Jun 2016 12:37:06 -0400" Date: Tue, 14 Jun 2016 12:51:25 -0400 Message-ID: <19903.1465923085@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Robert Haas writes: > On Fri, Jun 10, 2016 at 4:12 PM, Robert Haas wrote: >> On Fri, Jun 10, 2016 at 1:49 PM, Peter Eisentraut >> wrote: >>> Elsewhere in this thread I suggested getting rid of the parallel worker >>> context by default (except for debugging), but if we do want to keep it, >>> then it seems to be a bug that a PL/pgSQL function can just eliminate it. > This is currently listed as an open item, but it doesn't seem very > actionable to me. The fact that PL/plpgsql chucks the existing > context instead of appending to it is presumably a property of > PL/plpgsql, not parallel query, and changing that seems like it ought > to be out of scope for 9.6. FWIW, I follow all of your reasoning except this. If we believe that the parallel worker context line is useful, then it is a bug that plpgsql suppresses it. If we don't believe it's useful, then we should get rid of it. "Do nothing" is simply not a consistent stance here. 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