Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goEoH-00012G-Ie for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jan 2019 21:51:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goEoF-0004we-Nr for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jan 2019 21:51: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1goEoF-0004wX-Gc for pgsql-hackers@lists.postgresql.org; Mon, 28 Jan 2019 21:51: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1goEoD-0007Uw-Hw for pgsql-hackers@lists.postgresql.org; Mon, 28 Jan 2019 21:51:15 +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 x0SLpB4t018425; Mon, 28 Jan 2019 16:51:11 -0500 From: Tom Lane To: Robert Haas cc: PostgreSQL Hackers Subject: Re: Proposed refactoring of planner header files In-reply-to: References: <11460.1548706639@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 28 Jan 2019 15:33:10 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18423.1548712271.1@sss.pgh.pa.us> Date: Mon, 28 Jan 2019 16:51:11 -0500 Message-ID: <18424.1548712271@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Mon, Jan 28, 2019 at 3:17 PM Tom Lane wrote: >> I'm really unhappy that force_parallel_mode and >> parallel_leader_participation are being treated as planner GUCs. > The only use of parallel_leader_participation at plan time seems to be > to twiddle the costing, and the use of it in the executor is to decide > whether to have the leader participate. So if the values differ, > you'll get a plan running a behavior for which plan selection was not > optimized. I don't know whether it's useful to intentionally allow > this so that you can see how the same plan behaves under the other > setting, or whether it's just a wart we'd be better off without. It > might be confusing, though, if you change the setting and it doesn't > force a replan. Well, that puts it at the ill-considered end of the spectrum instead of the outright-broken end, but I still say it's a bad idea. Planner GUCs ought to control the produced plan, not other behaviors. regards, tom lane