Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGE9N-0002I2-4o for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jun 2016 23:35:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bGE9M-0007Bc-JG for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Jun 2016 23:35:08 +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 1bGE9L-0007B1-Qk for pgsql-hackers@postgresql.org; Thu, 23 Jun 2016 23:35:07 +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 1bGE9J-0001F6-1x for pgsql-hackers@postgresql.org; Thu, 23 Jun 2016 23:35:06 +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 u5NNZ3mx012298; Thu, 23 Jun 2016 19:35:03 -0400 From: Tom Lane To: David Rowley cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Rethinking representation of partial-aggregate steps In-reply-to: References: <29309.1466699160@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Fri, 24 Jun 2016 11:14:32 +1200" Date: Thu, 23 Jun 2016 19:35:03 -0400 Message-ID: <12297.1466724903@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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: > As for the above proposal, I do agree that it'll be cleaner with bit > flags, I just really don't see the need for the AGGTYPE_* alias > macros. For me it's easier to read if each option is explicitly listed > similar to how pull_var_clause() is done, e.g: That does not sound to me like it does anything to address the issue of documenting which combinations of flags are sensible/supported. I prefer something like the enum approach I suggested further downthread. 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