Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEkiF-0000C0-9m for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Jun 2016 21:57:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bEkiE-0000sn-Dr for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Jun 2016 21:57:02 +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 1bEkgr-0007p8-I5 for pgsql-hackers@postgresql.org; Sun, 19 Jun 2016 21:55:37 +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 1bEkgj-00016z-CR for pgsql-hackers@postgresql.org; Sun, 19 Jun 2016 21:55:37 +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 u5JLtPcT022044; Sun, 19 Jun 2016 17:55:25 -0400 From: Tom Lane To: Peter Eisentraut cc: Robert Haas , Amit Kapila , Noah Misch , =?UTF-8?B?Q2zDqW1lbnQgUHLDqXZvc3Q=?= , PostgreSQL-development Subject: Re: parallel.c is not marked as test covered In-reply-to: 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> Comments: In-reply-to Peter Eisentraut message dated "Sun, 19 Jun 2016 17:22:04 -0400" Date: Sun, 19 Jun 2016 17:55:25 -0400 Message-ID: <22043.1466373325@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 Peter Eisentraut writes: > On 6/19/16 3:09 PM, Robert Haas wrote: >> On Sun, Jun 19, 2016 at 11:36 AM, Tom Lane wrote: >>> 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. I would guess that 90 to 95 times out of 100, that test *will* exercise what it's supposed to, and that's enough to make it useful. But we can't assume that it'll happen 100% of the time. > 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. Agreed, if the percentage suddenly fell to 0 we wouldn't know it, and that's concerning. But wishing it were 100% doesn't make it so. Depending on what the percentage actually is, maybe we could treat this like the "random" test, and allow a failure to be disregarded overall? But that doesn't seem very nice either, in view of our increasing reliance on automated testing. If "random" were failing 90% of the time on some buildfarm critters, that would probably indicate a real problem, but we'd likely not realize it for a long time. > 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? Good question. 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