Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUDn2-0006Ox-DU for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2017 14:34:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cUDn1-0007up-Cx for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2017 14:34:11 +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 1cUDmz-0007u5-HB for pgsql-hackers@postgresql.org; Thu, 19 Jan 2017 14:34:09 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cUDmr-0004ZH-8A for pgsql-hackers@postgresql.org; Thu, 19 Jan 2017 14:34:07 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1457A20AF5; Thu, 19 Jan 2017 09:33:59 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 19 Jan 2017 09:33:59 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=UsMUO0xtEgVy/U KSwOvTPKWrCZc=; b=Kv2IvxtrRGEIDOUaqd7L28vouk7X4glTyPxi2H6bpRAWIG DcAqBxrkwn1/0kS02xqLK0im8QTzANC2hDmsBY2ikYsKd+UXuUoz+YPMFixuEkKr x1DucWPKPZP+kDMdJyVZf2DL4+wHfWMfUZ/3gITX6VbIF3uARnzyMOA7WZ2Vg= X-ME-Sender: X-Sasl-enc: 3qTK69PS26NOvi2AAAzvgKeq9xcYo7vRXKN4EBQkHxDZ 1484836438 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id A013A7E077; Thu, 19 Jan 2017 09:33:58 -0500 (EST) Subject: Re: [COMMITTERS] pgsql: Generate fmgr prototypes automatically To: Tom Lane References: <1771.1484681728@sss.pgh.pa.us> <40b53c62-4cf6-2d79-4aaa-c76a76532caa@2ndquadrant.com> <3211.1484683668@sss.pgh.pa.us> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4acaf9d0-012d-7423-880b-e2ce12b900f0@2ndquadrant.com> Date: Thu, 19 Jan 2017 09:33:58 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <3211.1484683668@sss.pgh.pa.us> Content-Type: multipart/mixed; boundary="------------75DE26F494ADC6CA4788CC53" X-Pg-Spam-Score: -2.6 (--) 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 This is a multi-part message in MIME format. --------------75DE26F494ADC6CA4788CC53 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 1/17/17 3:07 PM, Tom Lane wrote: > Alternatively ... is there a specific reason why you chose to make > builtins.h the key inclusion file for this change, rather than having > callers include fmgrprotos.h directly? It seems like the stuff remaining > in builtins.h is just a laundry list of random utility functions. > Maybe dispersing those to other headers is the thing to do. Here is a patch that moves two blocks from builtins.h into separate header files. That avoids having to include nodes/pg_list.h and utils/sortsupport.h. The remaining inclusion of nodes/nodes.h is for the oidparse() function. I think that could be moved out of oid.c and put somewhere near parser/ or objectaddress.c. But the practical savings from avoiding nodes.h is probably near zero, so I haven't done anything about that here. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --------------75DE26F494ADC6CA4788CC53 Content-Type: text/x-patch; name="0001-Move-some-things-from-builtins.h-to-new-header-files.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Move-some-things-from-builtins.h-to-new-header-files.pa"; filename*1="tch"