Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEkB4-0006pz-LS for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Jun 2016 21:22:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bEkB3-0006vA-4S for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Jun 2016 21:22:45 +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 1bEk9f-0005QR-8h for pgsql-hackers@postgresql.org; Sun, 19 Jun 2016 21:21:19 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bEk9a-0000Kc-JI for pgsql-hackers@postgresql.org; Sun, 19 Jun 2016 21:21:18 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9EF85203C9; Sun, 19 Jun 2016 17:21:12 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 19 Jun 2016 17:21:12 -0400 DKIM-Signature: v=1; a=rsa-sha1; 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-sasl-enc:x-sasl-enc; s=smtpout; bh=4UQGOOeiEz9UbOl vt3wUl3OB2TQ=; b=huhCnJvT104rSfw0ESEV9P2yfj3a/fawawSR/is8ydcalPF ohfGk5n7EfQCktFRtO0O2QUC8VlJrCnFQjjgJb0C+oKyAa1pKt6PAvf5ezKtJxDi BotQOw/zma6A4SVSOqr73HSUEvRUmOnl2VdriupJsGhol+0KRSe6QegIvO+4= X-Sasl-enc: Vc4UNqFqdK9zynpjppaaA2OCKNqgiqY6NEkxW6TQa4uB 1466371272 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 39F33F29FA; Sun, 19 Jun 2016 17:21:11 -0400 (EDT) Subject: Re: parallel.c is not marked as test covered To: Robert Haas , Tom Lane References: <20160607052716.GA766951@tornado.leadboat.com> <20160608034342.GA804701@tornado.leadboat.com> <58cd047c-deba-0863-b279-56b931237176@2ndquadrant.com> <24863.1466311214@sss.pgh.pa.us> <13382.1466350602@sss.pgh.pa.us> Cc: Amit Kapila , Noah Misch , =?UTF-8?B?Q2zDqW1lbnQgUHLDqXZvc3Q=?= , PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Sun, 19 Jun 2016 17:22:04 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 6/19/16 3:09 PM, Robert Haas wrote: > On Sun, Jun 19, 2016 at 11:36 AM, Tom Lane wrote: >> Amit Kapila writes: >>> On Sun, Jun 19, 2016 at 10:10 AM, Tom Lane wrote: >>>> Would this not result in unstable test output depending on whether the >>>> code executes in the leader or a worker? >> >>> Before doing that test, we set force_parallel_mode=1, so it should always >>> execute in worker which will ensure a stable output. >> >> No, it *might* execute in a worker. If you can get one. > > Right. Well, the purpose of the test is to check the error passing between worker and leader. If we just silently revert to not doing that, then we can't really be sure that we're testing the right thing. We've already seen some instances in this thread where we figured out after some debugging that some construct is not actually going through the parallel infrastructure, so I'm afraid if we leave it like this it might silently change behavior at some point in the future. Independent of that, it would help testing things like this if we allowed setting max_worker_processes to 0, instead of the current minimum 1. If there a reason for the minimum of 1? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers