Re: split builtins.h to quote.h

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Julien Rouhaud <julien(dot)rouhaud(at)dalibo(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Noah Misch <noah(at)leadboat(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: split builtins.h to quote.h
Date: 2014-11-07 21:51:53
Message-ID: CA+TgmoanBXP50U6b0HJHDw89ksBLqf19qb53RGjWZ1y9UzeFKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 7, 2014 at 4:42 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
> Robert Haas wrote:
>> I personally think that's getting our priorities backwards, but
>> there's clearly a spectrum in terms of how much people care about the
>> cost of partial compiles, and I'm clearly all the way on one end of
>> it. I don't like having to think hard about where a function
>> prototype is or should be, and getting more consistency there would,
>> for me, outweigh all other considerations.
>
> fmgr.h is a nasty header which would do well to avoid including in other
> headers as much as possible; it makes compilation in frontend
> environment impossible. For headers that don't otherwise need fmgr.h,
> my preference is to keep the SQL-callable declarations in builtins.h or
> some other dedicated header.

Well, there's something to that argument. I can live with whatever
you decide to do here, but given my druthers, the prototypes for
src/backend/X/Y/Z.c would all be in src/include/X/Z.h. If that means
shuffling some code around, I'd rather do that than have the
prototypes in strange places. But if I get outvoted, oh well.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-11-07 21:59:40 Re: row_to_json bug with index only scans: empty keys!
Previous Message Alvaro Herrera 2014-11-07 21:42:55 Re: split builtins.h to quote.h