Re: Should contrib modules install .h files?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Should contrib modules install .h files?
Дата
Msg-id 31578.1533234698@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Should contrib modules install .h files?  (Andres Freund <andres@anarazel.de>)
Ответы Re: Should contrib modules install .h files?
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2018-08-02 19:13:05 +0100, Andrew Gierth wrote:
>> And none of the plpython transforms can even parse their makefiles with
>> USE_PGXS, let alone build, because they have an "include" directive
>> pointing into src/pl/plpython.

> FWIW, I'd be perfectly on board with just burying this policy. Designating
> one contrib module (or something in src/test/examples or such) as a PGXS
> example, and always building it with pgxs seems like it'd do a much
> better job than the current policy.

No, I think that'd be pretty wrongheaded.  One of the big reasons for
contrib to exist is to serve as a testbed proving that our extension
features actually work.  What you suggest would reduce the scope of
that testing, which seems like the wrong direction to be going in.

It's particularly bad for these cases, since what they demonstrate is
that it's impossible to build transform modules for plperl or plpython
out-of-tree at the moment.  That doesn't seem to me to be something
we should just ignore; it goes against not only our larger commitment
to extensibility, but also the entire point of the transforms feature.

            regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Should contrib modules install .h files?
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: Should contrib modules install .h files?