Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOLcY-0006v4-4A for pgsql-committers@arkaria.postgresql.org; Mon, 22 Mar 2021 14:33:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOLcV-0003n2-D2 for pgsql-committers@arkaria.postgresql.org; Mon, 22 Mar 2021 14:33:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOLcV-0003mv-7J for pgsql-committers@lists.postgresql.org; Mon, 22 Mar 2021 14:33:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOLcT-0000UY-0C; Mon, 22 Mar 2021 14:33:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12MEXMVM558386; Mon, 22 Mar 2021 10:33:22 -0400 From: Tom Lane To: Robert Haas cc: Amit Kapila , pgsql-committers Subject: Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Mon, 22 Mar 2021 08:47:47 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <558384.1616423602.1@sss.pgh.pa.us> Date: Mon, 22 Mar 2021 10:33:22 -0400 Message-ID: <558385.1616423602@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > I find this fairly ugly. If you can't make the cost of checking > whether parallelism is safe low enough that you don't need a setting > for this, then I think perhaps you shouldn't have the feature at all. > In other words, I propose that you revert both this and 05c8482f7f and > come back when you have a better design that doesn't introduce so much > overhead. I'm +1 on that idea for a completely independent reason: 05c8482f7f is currently the easy winner for "scariest patch of the v14 cycle". I don't have any faith in it, and so I'm very concerned that it went in so late in the dev cycle. It'd be better to push some successor design early in the v15 cycle, when we'll have more time to catch problems. regards, tom lane