Re: Should contrib modules install .h files?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Should contrib modules install .h files?
Дата
Msg-id 12ba9c72-504f-b911-f0ce-1dff2826fa5b@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Should contrib modules install .h files?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Should contrib modules install .h files?  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
On 02.07.18 15:26, Tom Lane wrote:
> FWIW, I agree with Andres' thought that each contrib module should have
> its own subdirectory under $(includedir_server).  Otherwise we're going
> to be faced with questions about whether .h files need to be renamed
> because they're not globally unique enough.

Then they perhaps should be renamed.  That seems like a much simpler
solution.

The use case being discussed here is installing a data type extension's
header so you can write a transform for it.  The extension's name as
well as the data type's own name already have to be pretty much globally
unique if you want it to be useful.  So it doesn't seem very difficult
to me to have the extension install a single header file with that same
name.

The other side of this is that the PLs have to install their header
files.  Which the in-core PLs already do.  Would we we want to move
their header files under a new per-extension directory scheme?

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Pluggable Storage - Andres's take
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Copy function for logical replication slots