Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHY1f-0006xS-T3 for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Jun 2016 15:00:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bHY1d-0002BY-VZ for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Jun 2016 15:00:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bHY1c-0002AZ-I1 for pgsql-hackers@postgresql.org; Mon, 27 Jun 2016 15:00:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bHY1W-0000iW-LG for pgsql-hackers@postgresql.org; Mon, 27 Jun 2016 15:00:35 +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 u5RF0SBf000430; Mon, 27 Jun 2016 11:00:28 -0400 From: Tom Lane To: David Rowley cc: Alvaro Herrera , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Rethinking representation of partial-aggregate steps In-reply-to: References: <20160623173851.GA203183@alvherre.pgsql> <32396.1466704522@sss.pgh.pa.us> <1019.1466870211@sss.pgh.pa.us> <1473.1466870870@sss.pgh.pa.us> <24924.1466955395@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Mon, 27 Jun 2016 13:17:10 +1200" Date: Mon, 27 Jun 2016 11:00:28 -0400 Message-ID: <429.1467039628@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 David Rowley writes: > I can't help wonder how plan to allow future expansions of > non-serialized partial aggregates giving that in setrefs.c you're > making a hard assumption that mark_partial_aggref() should always > receive the SERIAL versions of the aggsplit. What I was imagining, but didn't bother to implement immediately, is that we could pass down the appropriate AggSplit value from the plan node (using the context argument for the mutator function). planner.c likewise needs a bit more plumbing to generate such plan nodes in the first place, so I didn't feel that setrefs.c had to be smarter right now. 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