Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFRbo-00072R-T3 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jun 2016 19:45: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 1bFRbo-00028s-Cq for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jun 2016 19:45:16 +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 1bFRaS-0000b6-CF for pgsql-hackers@postgresql.org; Tue, 21 Jun 2016 19:43:52 +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 1bFRaP-0001RQ-Na for pgsql-hackers@postgresql.org; Tue, 21 Jun 2016 19:43:51 +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 u5LJhkIv016316; Tue, 21 Jun 2016 15:43:47 -0400 From: Tom Lane To: Robert Haas cc: Amit Kapila , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Try again to fix the way the scanjoin_target is used with partia In-reply-to: References: <20853.1466210514@sss.pgh.pa.us> <27684.1466213813@sss.pgh.pa.us> <9539.1466220369@sss.pgh.pa.us> <19201.1466224572@sss.pgh.pa.us> <8536.1466530136@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 21 Jun 2016 15:36:59 -0400" Date: Tue, 21 Jun 2016 15:43:46 -0400 Message-ID: <16315.1466538226@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 Tue, Jun 21, 2016 at 1:28 PM, Tom Lane wrote: >> Also, I got rid of the target_parallel argument to >> apply_projection_to_path, as I thought that that was just way too much >> interconnection between apply_projection_to_path and its callers than >> is justified for what it saves (namely one call of has_parallel_hazard >> when planning a Gather). In general, having that argument could *add* >> extra calls of has_parallel_hazard, since callers might have to do >> that computation whether or not a Gather is present. > I had a feeling you weren't going to like that, but it also didn't > seem great to redo that computation for every path. Right now, we > only need it for Gather paths, but if we start marking subquery RTEs > as parallel-safe and fix upper rels to correctly set > consider_parallel, I have a feeling this is going to be needed more. > But feel free to ignore that for now since I don't have a completely > well-thought-out theory on this. If that does start being a problem, I'd be inclined to address it by teaching PathTarget to track whether its contents are parallel-safe. For now, though, I think we don't need the complication. 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