Re: Should contrib modules install .h files?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Should contrib modules install .h files?
Дата
Msg-id 20180723032405.GF2854@paquier.xyz
обсуждение исходный текст
Ответ на Re: Should contrib modules install .h files?  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Should contrib modules install .h files?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Jul 22, 2018 at 09:42:08PM -0400, Stephen Frost wrote:
> When I think about the demands of extensions, I tend to consider PostGIS
> the prime example and I certainly would understand if they wanted to
> install multiple headers (they have some 72 .h files from what I'm
> seeing...).
>
> So, +1 from me for having a directory for each extension.

Definitely.  If we were to choose the one-file per extension choice,
most large extension maintainers would logically scream at us.  If for
example you look at Citus, in src/include/distributed there are a bunch
of them.  Then based on that folks could always tweak their CFLAGS
pointing to the path of the extension if they need to.

We cannot ensure either that multiple extensions do not use the same
header file names, which discards any design using a single installation
location with multiple files.

So, like Stephen, that's a +1 from me.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Add SKIP LOCKED to VACUUM and ANALYZE
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgbench: improve --help and --version parsing