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 1lOnfG-0006Z0-UF for pgsql-committers@arkaria.postgresql.org; Tue, 23 Mar 2021 20:30:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOnfD-00069S-EX for pgsql-committers@arkaria.postgresql.org; Tue, 23 Mar 2021 20:30:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOnfD-00069K-9D for pgsql-committers@lists.postgresql.org; Tue, 23 Mar 2021 20:30:07 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOnfA-0000uT-HJ for pgsql-committers@lists.postgresql.org; Tue, 23 Mar 2021 20:30:06 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id EC5CE14AC; Tue, 23 Mar 2021 16:30:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 23 Mar 2021 16:30:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=bUSuSdu8g+oGnxd3a4pahxr2Ri4e2Z0SCFa+6abdEck=; b=cqwPxJM7 Z69NIsKjcHOrjL/iAzYfearnOakEZ6uhKuHv3MClqJNZrOFuE+DgBBVT6y9kFDjj 1PYxtJfSDs6UmHhCQLSw4euIRIULVEYnU7pGvu0ZGWT35e6gCUxqONE29Duzjcjx f7dIkRk2VAbQvHnLzLoZYXpPiDJSJ6hk5aFL0QgLSyM9gid9RxXgbTtEmceXFk/b B4U61MBg76cG5cuCpuLce+imKjSMMSBL1ZKBCPJEglBPnNnS0D4TyeGAUze5gNIn UQGYa4vzMsfOXx+GcVsurMbUnO/KH2Yuv/S+LdqXgNL1LZEIHNWaz5NWJlLRJOyt 9t09nsNT+pCIEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegiedgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgjggfsehtkeertddtredunecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpeevjeejkeejjeeiveeuuddvfeffiefhfffgleehgfeu geejheduvdefkeeihffftdenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cukfhppeduledtrdelhedrudelrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 99A4E240356; Tue, 23 Mar 2021 16:30:00 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 354D52A0FC3; Tue, 23 Mar 2021 17:29:58 -0300 (-03) Date: Tue, 23 Mar 2021 17:29:58 -0300 From: Alvaro Herrera To: Robert Haas Cc: Andres Freund , Amit Kapila , Tom Lane , Amit Kapila , pgsql-committers Subject: Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode Message-ID: <20210323202958.GA18316@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Mar-23, Robert Haas wrote: > Likewise, the XXX comment you added to max_parallel_hazard_walker > claims that some of the code introduced there is to compensate for an > unspecified bug in the rewriter. I'm a bit skeptical that the comment > is correct, and there's no way to find out because the comment doesn't > say what the bug supposedly is, but let's just say for the sake of > argument that it's true. Well, you *could* have fixed the bug, but > instead you hacked around it, and in a relatively expensive way that > affects every query with a CTE in it whether it can benefit from this > patch or not. That's not a responsible way of maintaining the core > PostgreSQL code. I think the CTE bug is this one: https://www.postgresql.org/message-id/flat/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com while I can't disagree with the overall conclusion that it seems safer to revert parallel INSERT/SELECT given the number of alleged problems, it is true that this bug exists, and has gone unfixed. -- Álvaro Herrera Valdivia, Chile