Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0Lqi-0007UG-1s for pgsql-hackers@arkaria.postgresql.org; Wed, 11 May 2016 04:34:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b0Lqh-0002HR-CF for pgsql-hackers@arkaria.postgresql.org; Wed, 11 May 2016 04:34:15 +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 1b0Lqg-0002HL-Ve for pgsql-hackers@postgresql.org; Wed, 11 May 2016 04:34:15 +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 1b0Lqe-0004Np-BQ for pgsql-hackers@postgresql.org; Wed, 11 May 2016 04:34:14 +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 u4B4Y8RI026843; Wed, 11 May 2016 00:34:08 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , 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> <16867.1462806684@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 09 May 2016 11:57:18 -0400" Date: Wed, 11 May 2016 00:34:08 -0400 Message-ID: <26842.1462941248@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) 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 Mon, May 9, 2016 at 11:11 AM, Tom Lane wrote: >> regression=# set force_parallel_mode TO on; >> SET >> regression=# explain select count(*) from tenk1; >> QUERY PLAN >> ----------------------------------------------------------------- >> Aggregate (cost=483.00..483.01 rows=1 width=8) >> -> Seq Scan on tenk1 (cost=0.00..458.00 rows=10000 width=0) >> (2 rows) >> >> Methinks force_parallel_mode is a bit broken. > Hmm, that is strange. I would have expected that to stuff a Gather on > top of the Aggregate. I wonder why it's not doing that. The reason is that create_plain_partial_paths() contains a hard-wired decision not to generate any partial paths for relations smaller than 1000 blocks, which means that no partial path will ever be generated for *any* relation in the standard regression tests, force_parallel_mode or no. I would just go fix this, along the lines of *************** create_plain_partial_paths(PlannerInfo * *** 702,708 **** * with all of its inheritance siblings it may well pay off. */ if (rel->pages < parallel_threshold && ! rel->reloptkind == RELOPT_BASEREL) return; /* --- 703,710 ---- * with all of its inheritance siblings it may well pay off. */ if (rel->pages < parallel_threshold && ! rel->reloptkind == RELOPT_BASEREL && ! force_parallel_mode == FORCE_PARALLEL_OFF) return; /* except that doing so and running the regression tests with force_parallel_mode = on results in core dumps. Some debugging seems indicated ... and we should at this point assume that there has been no useful testing of parallel query in the buildfarm, not even on Noah's machines. 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