Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di1Vj-00044h-C6 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Aug 2017 16:49:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1di1Vi-0002Fh-QY for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Aug 2017 16:49:38 +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 1di1Vh-0002Ej-Qh for pgsql-hackers@postgresql.org; Wed, 16 Aug 2017 16:49: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 1di1Ve-0001Ft-Pp for pgsql-hackers@postgresql.org; Wed, 16 Aug 2017 16:49: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 v7GGnW0x028590; Wed, 16 Aug 2017 12:49:32 -0400 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Simplify plpgsql's check for simple expressions. In-reply-to: References: <23425.1502822098@sss.pgh.pa.us> <31094.1502827694@sss.pgh.pa.us> <29231.1502831727@sss.pgh.pa.us> <7013.1502836842@sss.pgh.pa.us> <23848.1502895834@sss.pgh.pa.us> <26168.1502898994@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 16 Aug 2017 12:17:31 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28588.1502902172.1@sss.pgh.pa.us> Date: Wed, 16 Aug 2017 12:49:32 -0400 Message-ID: <28589.1502902172@sss.pgh.pa.us> 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 Wed, Aug 16, 2017 at 11:56 AM, Tom Lane wrote: >> I can get on board with that statement. Can you draft a better wording? > Here is an attempt. Feel free to edit. I think s/plan/query/ in the last bit would be better. Perhaps + * However, if force_parallel_mode = on or force_parallel_mode = regress, + * then we impose parallel mode whenever it's safe to do so, even if the + * final plan doesn't use parallelism. It's not safe to do so if the query + * contains anything parallel-unsafe; parallelModeOK will be false in that + * case. Otherwise, everything in the query is either parallel-safe or + * parallel-restricted, and in either case it should be OK to impose + * parallel-mode restrictions. If that ends up breaking something, then + * either some function the user included in the query is incorrectly + * labelled as parallel-safe or parallel-restricted when in reality it's + * parallel-unsafe, or else the query planner itself has a bug. */ 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