Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7mfq-0000L8-83 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 May 2016 16:37: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 1b7mfp-0005Tm-19 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 May 2016 16:37: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 1b7meU-0003zC-5f for pgsql-hackers@postgresql.org; Tue, 31 May 2016 16:36:22 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b7meP-0007vA-Rj for pgsql-hackers@postgresql.org; Tue, 31 May 2016 16:36:21 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EEB82232E6; Tue, 31 May 2016 12:36:09 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 31 May 2016 12:36:10 -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=DXBLqcf6YfYy2tS ZTwn6WR8CX9g=; b=BK7QAOk6ZauP0Iibnsw0RMpwfbwKSK5iMcdNMaXVixohJxE Ccy+OhakrFicUvzHx75vtGpL2tN/YuoVxf6Y18C+iP3/3Tzi934ygJ9dgTrebD7V 1rQ+Sij3wBDaMjMicOUTUF8f1Wcbyj4E8VXo+oiJy6rV8tqnmbOyjGSD4ABA= X-Sasl-enc: lg+xP8xv8Ok2FCBLV2dFLHprBE3I2e/zQqfpj69JXv2V 1464712569 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 50339CCD39; Tue, 31 May 2016 12:36:09 -0400 (EDT) Subject: Re: parallel.c is not marked as test covered To: Andres Freund , Alvaro Herrera References: <20160509012055.GA433959@alvherre.pgsql> <20160509145023.tkdpyygfxu56ngzz@alap3.anarazel.de> Cc: David Rowley , =?UTF-8?B?Q2zDqW1lbnQgUHLDqXZvc3Q=?= , PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <92bec2a5-6d5b-6630-ce4d-2ed76f357973@2ndquadrant.com> Date: Tue, 31 May 2016 12:36:08 -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: <20160509145023.tkdpyygfxu56ngzz@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252; 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 5/9/16 10:50 AM, Andres Freund wrote: > I think it's a good idea to run a force-parallel run on some buildfarm > members. But I'm rather convinced that the core tests run by all animals > need some minimal coverage of parallel queries. Both because otherwise > it'll be hard to get some coverage of unusual platforms, and because > it's imo something rather relevant to test during development. I can confirm that with force_parallel_mode = on, parallel.c does get good test coverage. But I agree that it is a problem that this does not happen in the default test setup. I think we might want to have a new test file that sets force_parallel_mode = on and just runs a few queries to give parallel.c a small workout. For example, I find that the following test file gives almost the same coverage as running the full test suite with f_p_m=on: """ SET force_parallel_mode = on; EXPLAIN SELECT * FROM tenk1 WHERE unique1 = 1; SELECT * FROM tenk1 WHERE unique1 = 1; -- provoke error in worker SELECT stringu1::int2 FROM tenk1; """ While we're at it, one of the things that force_parallel_mode = regress does is remove an error context that is otherwise added to all messages: errcontext("parallel worker, PID %d", *(int32 *) arg); I think we should get rid of that error context altogether, except possibly as a debugging tool, because it's an implementation detail that does not need to be shown to users by default. -- 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