From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Generate fmgr prototypes automatically
Date: Thu, 19 Jan 2017 09:33:58 -0500
Message-ID: <4acaf9d0-012d-7423-880b-e2ce12b900f0@2ndquadrant.com> (raw)
In-Reply-To: <3211.1484683668@sss.pgh.pa.us>
References: <E1cTZ5U-00037Y-95@gemulon.postgresql.org>
<1771.1484681728@sss.pgh.pa.us>
<40b53c62-4cf6-2d79-4aaa-c76a76532caa@2ndquadrant.com>
<3211.1484683668@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
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
Attachments:
0001-Move-some-things-from-builtins.h-to-new-header-files.patch (text/x-patch, 0B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Generate fmgr prototypes automatically
In-Reply-To: <4acaf9d0-012d-7423-880b-e2ce12b900f0@2ndquadrant.com>
References: <E1cTZ5U-00037Y-95@gemulon.postgresql.org> <1771.1484681728@sss.pgh.pa.us> <40b53c62-4cf6-2d79-4aaa-c76a76532caa@2ndquadrant.com> <3211.1484683668@sss.pgh.pa.us> <4acaf9d0-012d-7423-880b-e2ce12b900f0@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox