Re: Should contrib modules install .h files? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Should contrib modules install .h files?
Date
Msg-id 384d19e8-bea1-1188-2324-f23f82a30d17@2ndquadrant.com
Whole thread Raw
In response to Re: Should contrib modules install .h files?  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: Should contrib modules install .h files?
List pgsql-hackers
On 23/07/2018 18:32, Andrew Gierth wrote:
>>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
> 
>  Tom> As I said before, I think that we should change the existing
>  Tom> contrib modules to be coded likewise, all using a single -I switch
>  Tom> that points at SRCDIR/contrib. That'd help give people the right
>  Tom> coding model to follow.
> 
> I don't see that playing nicely with PGXS?

I'm also not on board that my random third-party extension now has to
refer to its own header files as "subdirectory/headerfile.h".  Which
will mess up existing extensions that have header files in their tree.

Or at least I'm not totally sure what the exact proposal and real-world
implications are, with regard to existing extensions with one or more
header files.

By all means, let's make it easier for large or small extensions to
manage their header files with PGXS.  But let's separate what PGXS can
and should do from what the extension's own file layout is.

But I think there are some fundamentally incompatible goals here with
regard to how the final -I options are supposed to look.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade from 9.4 to 10.4
Next
From: Peter Eisentraut
Date:
Subject: Re: Should contrib modules install .h files?