Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDcNF-0003RO-Rz for pgsql-hackers@arkaria.postgresql.org; Tue, 01 May 2018 20:59:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fDcNE-00069I-EA for pgsql-hackers@arkaria.postgresql.org; Tue, 01 May 2018 20:59:44 +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.89) (envelope-from ) id 1fDcNE-000698-6r for pgsql-hackers@lists.postgresql.org; Tue, 01 May 2018 20:59:44 +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.89) (envelope-from ) id 1fDcNB-000862-Iq for pgsql-hackers@postgresql.org; Tue, 01 May 2018 20:59:43 +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 w41KxZnm015684; Tue, 1 May 2018 16:59:36 -0400 From: Tom Lane To: Robert Haas cc: David Rowley , Stephen Frost , Tomas Vondra , Andres Freund , PostgreSQL-development Subject: Re: Parallel Aggregates for string_agg and array_agg In-reply-to: References: <24abe018-b3c6-2117-b5b9-39e660db00bd@2ndquadrant.com> <1b6ee15c-c218-761e-0120-c1ed438e2db2@2ndquadrant.com> <657be73a-a21d-0ae1-5c62-870afbdfddd4@2ndquadrant.com> <20180326022647.GL24540@tamriel.snowman.net> <20180326132009.GN24540@tamriel.snowman.net> <6538.1522096067@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 01 May 2018 16:16:02 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15682.1525208375.1@sss.pgh.pa.us> Date: Tue, 01 May 2018 16:59:35 -0400 Message-ID: <15683.1525208375@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Mon, Mar 26, 2018 at 4:27 PM, Tom Lane wrote: >> I fear that what will happen, if we commit this, is that something like >> 0.01% of the users of array_agg and string_agg will be pleased, another >> maybe 20% will be unaffected because they wrote ORDER BY which prevents >> parallel aggregation, and the remaining 80% will scream because we broke >> their queries. Telling them they should've written ORDER BY isn't going >> to cut it, IMO, when the benefit of that breakage will accrue only to some >> very tiny fraction of use-cases. > I think your estimated percentages here are wildly inaccurate. My estimate for the number of people positively impacted could be off by a factor of a thousand, and it still wouldn't change the conclusion that this will hurt more people than it helps. I see that I'm in the minority on this, so I'm prepared to accept defeat, but I stand by that conclusion. regards, tom lane